PDAL / python

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

Fail to import pdal version 3.3.0 because libpdalpython could not be found #164

Open Martin20494 opened 5 months ago

Martin20494 commented 5 months ago

Hi team, I tried to import pdal but I got this error

      1 __version__ = "3.3.0"
      2 __all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"]
----> 4 from . import libpdalpython
      5 from .drivers import inject_pdal_drivers
      6 from .pipeline import Filter, Pipeline, Reader, Stage, Writer

ImportError: DLL load failed while importing libpdalpython: The specified module could not be found.

I'm not sure if this is the same issue as mentioned here https://github.com/PDAL/PDAL/issues/2299. Could you please help?

hobu commented 5 months ago

You must have the base PDAL package installed before the Python bindings can work. If you are using Conda Forge packages, you should have both pdal and python-pdal packages installed. If elsewhere, make sure to have base C++ library installed too.

hobu commented 4 months ago

The issue is the 'pdal' package from PyPI is also getting installed for some reason.

pip uninstall PDAL

This should fix the issue. We need pdal and python-pdal from conda, not the PDAL package from PyPI.

I wonder if this is getting pulled as a PyPI dependency from something... 🤔