Blender-Addon-Photogrammetry-Importer: Error trying to import .las and .laz files
Hi, These are the errors I get whenever I try to import a .las or .laz file. I’ve been trying to get this to work for hours, including manually updating and reinstalling various python packages. I’m basically a beginner when it comes to this stuff, please help. Appreciate the addon, used it a bunch for meshroom data.
INFO:root:INFO: path: C:\Users\[name]\Desktop\NUKE\projects\reel\CG_Integration\city_fire_cars\ele\TN_HamiltonCounty_2011_000040.laz
INFO:root:INFO: Parse Point Data File: ...
Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\headers\rawheader.py", line 320, in header_class_for_version
return cls._version_to_header[str(version)]
KeyError: '1.0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\[name]\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\photogrammetry_importer\operators\point_data_import_op.py", line 49, in execute
points = PointDataFileHandler.parse_point_data_file(path, self)
File "C:\Users\[name]\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\photogrammetry_importer\file_handlers\point_data_file_handler.py", line 238, in parse_point_data_file
point_cloud = PyntCloud.from_file(ifp)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\core_class.py", line 130, in from_file
return cls(**FROM_FILE[ext](filename, **kwargs))
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\io\las.py", line 90, in read_las
data = read_las_with_pylas(filename)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\io\las.py", line 63, in read_las_with_pylas
with pylas.open(filename) as las_file:
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\lib.py", line 66, in open_las
return LasReader(stream, closefd=closefd)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\lasreader.py", line 39, in __init__
self.header = self.read_header()
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\lasreader.py", line 45, in read_header
return headers.HeaderFactory().read_from_stream(self.stream)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\headers\rawheader.py", line 346, in read_from_stream
header_class = cls.header_class_for_version(version)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\headers\rawheader.py", line 322, in header_class_for_version
raise errors.FileVersionNotSupported(version)
pylas.errors.FileVersionNotSupported: 1.0
location: <unknown location>:-1
INFO:root:INFO: path: C:\Users\[name]\Desktop\NUKE\projects\reel\CG_Integration\city_fire_cars\ele\2164253NE.las
INFO:root:INFO: Parse Point Data File: ...
WARNING:pylas.lasreader:There are 137 bytes between end of vlrs and start of points
Python: Traceback (most recent call last):
File "C:\Users\[name]\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\photogrammetry_importer\operators\point_data_import_op.py", line 49, in execute
points = PointDataFileHandler.parse_point_data_file(path, self)
File "C:\Users\[name]\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\photogrammetry_importer\file_handlers\point_data_file_handler.py", line 238, in parse_point_data_file
point_cloud = PyntCloud.from_file(ifp)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\core_class.py", line 130, in from_file
return cls(**FROM_FILE[ext](filename, **kwargs))
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\io\las.py", line 90, in read_las
data = read_las_with_pylas(filename)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pyntcloud\io\las.py", line 64, in read_las_with_pylas
las = las_file.read()
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\lasreader.py", line 92, in read
evlrs = self.read_evlrs()
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\lasreader.py", line 209, in read_evlrs
return evlrs.EVLRList.read_from(self.stream, self.header.number_of_evlr)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\evlrs.py", line 89, in read_from
raw = RawEVLR.read_from(data_stream)
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\lib\site-packages\pylas\evlrs.py", line 42, in read_from
raw_evlr.record_data = data_stream.read(
MemoryError
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (18 by maintainers)
I have to say, the amount of time and effort you put into ironing out issues on a free addon is really awesome. Thanks for taking the time. Let me know if you ever need any testing or logs or something like that.
Ok, I take it all back, I think it wasn’t working because I had downloaded it into
C:\WINDOWS\system32>
without thinking, and so I think it was a permissions issue. I’ve redownloaded using the same method into theDesktop
folder and the.bat
ran as intended.