martibosch / detectree-examples

Example computational workflows to classify tree/non-tree pixels in Zurich using DetecTree
GNU General Public License v3.0
19 stars 15 forks source link

LaspyException: No LazBackend selected, cannot decompress data #7

Closed mcclochette closed 3 years ago

mcclochette commented 3 years ago

While running cell 6, I ran into this error.

~/anaconda3/envs/detectree/lib/python3.9/site-packages/laspy/lasreader.py in init(self, source, closefd, laz_backend) 51 if self.header.are_points_compressed: 52 if not laz_backend: ---> 53 raise errors.LaspyException( 54 "No LazBackend selected, cannot decompress data" 55 ) LaspyException: No LazBackend selected, cannot decompress data

I don't know if there is a way it could be fixed. It seems to be related to the numpy version ?

martibosch commented 3 years ago

Hello @mcclochette,

Thank you for reporting this. I suppose that you mean cell 6 the "baseline.ipynb" notebook. It seems laszip must be installed via pip in order for laspy to detect the laszip backend and read compressed LIDAR. I have amended the last commit to fix this so the notebooks should be now working.

Feel free to reopen if needed. Best, Martí

37310N commented 2 years ago

This solution helped me as well, but install via conda was not possible, had to use pip as suggested. Jfyi if somebody comes across this issue after being closed.