-
Notifications
You must be signed in to change notification settings - Fork 24
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
Deprecated NumPy syntax : needs new windows binary? #183
Comments
Sure. This was fixed in git a little while ago. Is the underlying problem that you need a binary release to be uploaded on pypi so that you can install on windows? |
Hi Jon, Thanks for the quick response! I am still learning the jargon for programming, but yes, think a new Windows binary might be needed. For context, I installed this version of ImageD11 (1.9.8) via |
If you are in a hurry, you can install the C compiler (https://wiki.python.org/moin/WindowsCompilers) and then try running the pip install again (there is a v2.0.0 source release on pypi now). Something like:
The The The Otherwise let me know which python version you are using and I can see if I can make a wheel for it here. |
Thanks for your quick response, Jon! I've followed the With regards to Python version, I am using Python 3.8.18. I have previously tried installing ImageD11 1.9.8 in environments running on newer versions of Python (3.9 - 3.11), but the |
Once all dependencies are available for python3.12, to enable tests for Python3.12 when releasing wheels, remove ImageD11/.github/workflows/release.yml Lines 56 to 58 in 24c372f
|
That's great news, thanks for working on this matter! I'd be happy to test the new wheels for Windows once they're released. |
They should be up on pip as version 2.0.1 now. Please let me know if you have a problem to install them - otherwise I am hoping this is fixed now? |
Hi Jon, thanks for notifying me about the version 2.0.1 being available now! I've given it a test on my Windows 10 desktop, but it has unfortunately failed to install thus far. I'll copy out the steps I've taken:
One other thing to note would be that I already have Visual Studio C++ Build Tools installed separately on my computer. Input on what has happened above would be much appreciated. Are there other arguments that I should have included but didn't? |
Sorry for the mess. The problem is the dependency on numba that is not ready for 3.12 yet (numba/numba#9197). ImageD11 should install on 3.8 up to 3.11, and on 3.12 as soon as numba release their next version. You can install it now with a --no-deps flag but then you need to install dependencies manually. |
They are aiming at 11-Dec https://github.com/numba/numba/milestone/73, so it seems reasonable to just wait for that to arrive. |
Thanks for the quick reply! I've downgraded to Python 3.11, and can confirm that the installation has progressed successfully through to completion. Thanks for resolving this installation issue! |
Note to self: we still need a new windows binary build for numba 3.12 to go to pypi... almost there now. |
I am running ImageD11 1.9.8 on a Windows 10 OS, and encountered the following issue with the
columnfile()
module/function:If I have understood the error message correctly, ImageD11 is written using deprecated NumPy syntax. Would it be possible to consider updating the syntax to make it compatible with newer versions of NumPy (I am running version 1.24.4)? This should involve replacing
np.float
,np.int
and other such terms with the up-to-date variant (np.float_
,np.int_
, etc.).The text was updated successfully, but these errors were encountered: