-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error installing with Numpy 2.0 #36
Comments
I found an error that I think is related to what you mention here. I encountered it because I was setting up after the COSMA update. My steps to reproduce (
This throws two errors, e.g:
Based on this solution, I changed I created a merge request here: #37 |
I suspect that |
Many thanks, Victor. It is weird that this works. PyArray_NAME should be
independent of Numpy, I assume, so I do not understand why this is related
to the update, but honestly, I haven't followed the changes introduced in
the last update. If this works for now, let's use your solution. I need to
find time to sit down and check what's really going on.
Cheers,
Alejandro.
…On Mon, 15 Jul 2024 at 13:49, Victor J. Forouhar Moreno < ***@***.***> wrote:
I suspect that setup.py will also need updating. This is because, despite
being able to install it, pip throws some warnings (and apparently
duplicates pip list entries) after installing. The alternative of
installing using pip install py-sphviewer was not working, as it was not
detecting my installation of numpy (I suspect it was not looking for it
in my venv).
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYAMDJHIZZDLET5GQZGJALZMOZMTAVCNFSM6AAAAABKMWKQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRYGMYTGOBQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Alejandro Benítez Llambay
|
Hi Alejandro, I agree that the naming is confusing. I went digging a little bit deeper, and In terms of why the old name stopped working. This header contained name equivalences between Thanks, |
Ah, I see. Indeed, confusing. Many thanks for looking into it :).
Cheers,
Ale.
…On Tue, 16 Jul 2024 at 10:08, Victor J. Forouhar Moreno < ***@***.***> wrote:
Hi Alejandro,
I agree that the naming is confusing. I went digging a little bit deeper,
and PyArray seems to be numpy specific. Based on that, it is not that
unsurprising that they now prefer using NPY_ (and it is less confusing!)
In terms of why the old name stopped working. This header
<https://github.com/numpy/numpy/blob/maintenance/1.26.x/numpy/core/include/numpy/old_defines.h>
contained name equivalences between PyArray_DTYPE and NPY_DTYPE. The file
is no longer present in numpy 2.0.
Thanks,
Victor.
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYAMDN2D6QHWX47LR3P62DZMTIJXAVCNFSM6AAAAABKMWKQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZQGI4DENZRGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Alejandro Benítez Llambay
|
As Numpy 2.0 has broken some parts of the code, use Numpy 1.26.4 until we make the required changes to adhere to the new C-API:
pip install numpy==1.26.4
Sorry for the inconvenience.
The text was updated successfully, but these errors were encountered: