laz-rs / laz-rs-python

Python bindings for laz-rs
MIT License
10 stars 4 forks source link

Crash on Python 3.9 #4

Closed tmontaigu closed 3 years ago

tmontaigu commented 3 years ago

After testing pylas with python 3.9 + lazrs it seems that lazrs does not work with python 3.9, the interpreter crashed each time it tried to instantiate a class from lazrs.

>> import lazrs
>>> lazrs.read_chunk_table()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: read_chunk_table() missing required positional argument: source

# OK the exception is expected, nothing crashes when calling function
>> import lazrs
>>> lazrs.LasZipDecompressor()
 # Crash, we should get an exception, as arguments are not ok
 # however even with correct arguments it crashes 
 # The behaviour seems to be the same for all classes

lazrs-python uses pyo3 v 0.8.5 from January 5, 2020, I think this is the cause of the problem updating to a newer pyo3 version should fix this