-
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
RunTimeError: weakly_canonical... when importing PDAL in standalone python script. #145
Comments
I believe What does |
please try installing from Even so, I do not understand where this error is coming from. |
Could you clarify 'installing from python-pdal' please? Thank you |
|
confirmed I'm seeing this on a fresh environment too. I do not get the weakly_canonical error when I |
I think the issue is conda is confused:
I'm not quite sure what to do here. Any ideas @chambbj ? |
I just tried a couple of things, maybe helpful to know - maybe not! In the Conda prompt, for both my fresh test environment (pdal_test), and the existing one (pdalpython) - I am able to import pdal without issue. When I open Spyder via conda prompt for the pdalpython environment, and import pdal through the console, I get the error message. This is also true with PyCharm and VSCode. Perhaps an issue with my IDE settings? |
there have been a number of tickets related to Spyder. The path that is being checked there must be related to not having a Try setting |
The cause of the issue is The straight Conda package activate/deactivate scripts take care of handling PDAL could certainly not try to list directories that don't exist, and that issue is PDAL/PDAL#4005 This rest of it is an issue that should be handled in the Conda package, but I'm not sure how to do it. https://github.com/conda-forge/python-pdal-feedstock/ is where the conda package is managed. |
Any updates on fixing this issue? I'm getting the same 'RuntimeError: weakly_canonical" error in a fresh Anaconda installation, python 3.11.1 and using a fresh environment? I've tried uninstalling and reinstalling everything multiple times without success. I installed the python-pdal package with command |
I've installed PDAL using miniconda via "conda install -c conda-forge pdal python-pdal gdal". I was able to use PDAL in conda prompt successfully. When trying to run a standalone script in either PyCharm or Spyder, I receive the following error message:
E:\dev\tiff_to_las\data>"C:\Users\alex\AppData\Local\miniconda3\envs\pdalpython\python.exe" "E:\dev\tiff_to_las\pdal_tiff_to_las.py"
Traceback (most recent call last):
File "E:\dev\tiff_to_las\pdal_tiff_to_las.py", line 8, in
import pdal
File "C:\Users\alex\AppData\Local\miniconda3\envs\pdalpython\Lib\site-packages\pdal_init_.py", line 8, in
inject_pdal_drivers()
File "C:\Users\alex\AppData\Local\miniconda3\envs\pdalpython\Lib\site-packages\pdal\drivers.py", line 66, in inject_pdal_drivers
drivers = libpdalpython.getDrivers()
^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: weakly_canonical: The device is not ready.: "D:/bld/pdal_1678484181627/_h_env/Library/bin"
E:\dev\tiff_to_las\data>pause
Press any key to continue . . .
My machine has a D:/, but it's a DVD RW Drive that is never used. I have tried removing OSGeo4W, which had PDAL. I have tried removing and recreating the PDAL environment in miniconda, and the error persists. Apologies if this is a duplicate, I did a bit of searching to find a similar issue and wasn't able to find any. Thanks a bunch for any help.
The text was updated successfully, but these errors were encountered: