2
import laspy 
import open3d as o3d
import numpy as np

las = laspy.read("file.laz")

When I use this code, I get the error: laspy.errors.LaspyException: No LazBackend selected, cannot decompress data

How can I resolve this?

PKS
  • 31
  • 1
  • 2

1 Answers1

5

The laspy website explains how to enable filehandling of .laz files.

https://laspy.readthedocs.io/en/latest/installation.html#

You have to install one of the two given .laz backends. On the top of the page are installation examples.

With unix/macOS this worked for me:

python3 -m pip install "laspy[lazrs,laszip]"

Make sure to reload your python environment after the installation.

Tryph
  • 5,946
  • 28
  • 49
felspec
  • 51
  • 4