LoginSignup
11
5

More than 1 year has passed since last update.

Jetson NanoのPython3環境でIllegal instruction (cpre dumped)

Last updated at Posted at 2021-06-26

現象

  • ドローンのTelloをプログラムで制御するためのPythonライブラリDJITelloPyをJetson Nano(Ubuntu)にインストールした。
  • が、import Telloを実行しただけなのにIllegal instruction (cpre dumped)でエラーになってしまう。

環境

  • Jetson Nano
  • Ubuntu 18.04 LTS

エラー内容

こんな感じで、import Telloを実行しただけで、core dumpedになる。

$ python3
>>> from djitellopy import Tello
Illegal instruction (core dumped)

Screenshot from 2021-06-25 22-21-17.png

pip3 installでいろんなバージョンを試したけど解決せず。

一方、Intel Macでは正常に実行できる。

スクリーンショット 2021-06-25 22.36.57.png

解決方法

python3を実行する前に環境変数OPENBLAS_CORETYPEARMV8だよって設定をしとけばよい。
(毎回設定するのが面倒くさいなら.bashrcあたりに書くとかする)

$ export OPENBLAS_CORETYPE=ARMV8

OK、解決した!

Screenshot from 2021-06-25 23-14-37.png

落ち着いて調べたら、からあげ先生のまとめにちゃんと書かれてましたね。
さすがです。

11
5
3

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
11
5