-
Notifications
You must be signed in to change notification settings - Fork 35
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
Trouble installing from PyPI: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘fields’
#169
Comments
I'll take a look. I had made some changes for Numpy 2.0 in #167, but maybe there is more to do. |
@hobu I am having the same issue with pdal==3.1.2. Is it possible to pin the Numpy version for the old pdal releases? |
I'm confused as to what you need. Do you need a version less than 1.22? https://github.com/PDAL/python/blob/main/pyproject.toml#L29 ? |
Any numpy version is fine for me. Installing numpy==1.22 was an attempt to get |
For my side, I believe I need |
Please try #170 |
Works great! Thanks @hobu! |
ok, I'll bump and push releases today. sorry for the trouble. |
No worries! Thanks for the quick fix! |
@iseong83 you should be able to specify your numpy version by installing it separately from pdal (instead of letting pdal choose the version) i.e. try |
I'm having a time trying to build the PDAL library from source, and then install python-pdal with pip in a Docker container. This was working last week, so I strongly suspect my issues are related to the release of Numpy 2.0.0 and subsequent deprecation of some of their C APIs.
Strangely, I still can't get it to work when pinning Numpy to some version <2 (that still meets the python-pdal dependency requirements).
The whole error printout is:
The Dockerfile being built looks like this (simplified from the original)
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: