davidcaron / pclpy

Python bindings for the Point Cloud Library (PCL)
MIT License
428 stars 59 forks source link

Read laspy version #109

Open micdist opened 1 year ago

micdist commented 1 year ago

Calling:

cloud = pclpy.read("path/to/.las", ""PointXYZ")

causes:

laspy.errors.LaspyException: You are using laspy 2.0, which has several improvements over 1.x.

But calling:

cloud = pclpy.read("path/to/.las") //without point type

causes:

TypeError: read() missing 1 required positional argument: 'point_type'.

Thank you

Robin6416KW commented 1 year ago

laspy's reading behavior had change after 2.0, reinstall laspy to 1.7 will fix this issue.