-
-
Notifications
You must be signed in to change notification settings - Fork 317
P4D compatability with NumPy - Followup #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Add to your test.py the following:
Is it using the same python as P4D? (AppData\Roaming\Python\Python312)
I cannot see how P4D is to blame for this error. P4D knows nothing about numpy, pandas or any other python module. It just runs the code using python. Also note that this code runs here fine with python 3.13, but this should not make a difference. |
Hello Kiriakos, At first , I want to emphasize that I do not mean to critique Python4Delphi , I really see it as a brilliant solution that will make me able to use the big scientific libraries of python in Delphi. i just ask to get everything working flawlessly . I make the test you asked me to do. I've executed the test.py code inside P4D , and contrary to our expectations, it displayed that interactive graph in the external browser ! though not in the Edge browser, see the attached screenshot. After further investigation , using your tip of print(sys.exec_prefix) , I discovered that P4D is accessing an forgotten anaconda3 installation rather than the default system's Python 3.12 . So, I've removed the anaconda3 installation, fixed the registry key that the P4D engine accesses, and the error stopped. though, the edge_browser control do not render the html received. To double check, I wrapped another component : TMemo to receive a copy of the html string. and I added the necessary lines in the python script, and re-run the demo. The HTML is received correctly from python, but neither Edge browser nor the TWebbrowser renders it well. But since this is not a P4D issue, I want to thank you for your sincere help and for supporting this marvelous package Python4Delphi. You may close this ticket. Regards |
Hello again ,
I followed the advise given in the your reply for issue #499 . I checked the imports of all the needed packages you listed and they passed.
Then i created the following test :
the test setup (versions):
Whats now ?
The text was updated successfully, but these errors were encountered: