Skip to content
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

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

Open
Martin20494 opened this issue Mar 30, 2024 · 2 comments

Comments

@Martin20494
Copy link

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 PDAL/PDAL#2299. Could you please help?

@hobu
Copy link
Member

hobu commented Mar 30, 2024

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 hobu closed this as completed Mar 30, 2024
@hobu hobu reopened this Apr 9, 2024
@hobu
Copy link
Member

hobu commented Apr 9, 2024

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... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants