PDAL / python

PDAL's Python Support
Other
116 stars 34 forks source link

SystemError when using filters.python in a pipeline: _heapq did not return an extension module #83

Closed conlin-matt closed 3 years ago

conlin-matt commented 3 years ago

I am using pdal v2.2.0 within an Anaconda environment with Python 3.6, MacOS 10.15.7. I downloaded pdal using conda install -c conda-forge pdal python-pdal gdal.

Pipeline creation and execution work fine until I add a filters.python stage to the pipeline, at which point I get the following error:

SystemError: initialization of _heapq did not return an extension module

Full error example:

PDALerror

Similarly to #56, I do not see filters.python when I run pdal --drivers, however I have a different error than #56. I tried downgrading each package, i.e in a fresh environment running conda install -c conda-forge pdal=2.0.1 python-pdal=2.2 gdal=3.0. When doing this, filters.python became visible when running a pdal --drivers, yet the same error persisted.

56 was solved with a Dockerfile. I am not at all familiar with Dockerfiles- is there a solution here that doesn't involve them? Or would that solution also work here? Thanks for any advice.

For completeness, the pipeline looks like this:

Screen Shot 2021-05-25 at 3 21 24 PM
conlin-matt commented 3 years ago

Sorry- this is not a PDAL issue. This is a larger issue with Anaconda and MacOS.

For anyone stumbling on this in the future: I fixed the issue by uninstalling anaconda, setting my default shell to be bash rather than zsh, and reinstalling anaconda using the command line installer.