-
Notifications
You must be signed in to change notification settings - Fork 515
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
Numpy2 removed numpy.sometrue. #2574
Comments
If you just try to run Phoenix/samples/floatcanvas/MicroDemo.py you actually get two different numpy2 errors. File ".../floatcanvas/lib/python3.12/site-packages/wx/lib/floatcanvas/FloatCanvas.py", line 782, in ZoomToBB Numpy.float_ has been removed from numpy2 and then File ".../floatcanvas/lib/python3.12/site-packages/wx/lib/floatcanvas/FloatCanvas.py", line 604, in Draw numpy.sometrue has also been removed. Changing these sections to N.float64 and N.any respectively fixed these issues. |
Yes, |
Windows 10 22H2
'4.2.1 msw (phoenix) wxWidgets 3.2.2.1'
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32
I am not yet sure exactly the code path that is calling this but I will track down how to trigger this in a simple way but my application generates an exception. The core issue is in floatcanvas/FloatCanvas.py at line 604
numpy no longer has a numpy.sometrue() function
The text was updated successfully, but these errors were encountered: