1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LaspyException: No LazBackend selected, cannot decompress data

Last updated at Posted at 2024-10-28

起きたこと

  • laspyを用いてlazファイルを読み込もうとした所,詰んだ.

解決方法

明示的にlazers, lazzipを入れる.
今回はcargoも入っていなかったので,インストールした.

    apt update
    apt install curl
    curl https://sh.rustup.rs -sSf | sh
    cargo --version
    source $HOME/.cargo/env
    cargo --version
    pip install laspy[lazrs,laszip]

確認方法

import laspy
available_backends = laspy.compression.LazBackend.detect_available()
print(available_backends)

Tips

jupyterで使うときにpathエラーが出ることがある.
明示的に読み込むことで使えるようになる.

import os
os.environ['PATH'] = f"{os.environ['HOME']}/.cargo/bin:{os.environ['PATH']}"

! cargo --version
! pip install laspy[lazrs,laszip]
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?