Closed tayden closed 2 months ago
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 pip install pdal
to run, but didn't fix the error.
For my side, I believe I need numpy<2
. When I install pdal using pip install pdal
, it seems I cannot configure which numpy should install. Pip keep installing numpy==2.0.0
Please try https://github.com/PDAL/python/pull/170
Works great! Thanks @hobu!
ok, I'll bump and push releases today. sorry for the trouble.
No worries! Thanks for the quick fix!
For my side, I believe I need
numpy<2
. When I install pdal usingpip install pdal
, it seems I cannot configure which numpy should install. Pip keep installingnumpy==2.0.0
@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 pip install "numpy<2" pdal
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!