0
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?

No module named 'utils' デバッグ

Posted at

エラー内容

pythonで実行したところ,以下のエラーが発生した.

エラー内容
Traceback (most recent call last):
  File "parser.py", line 11, in <module>
    from utils.helpers import get_conf
ModuleNotFoundError: No module named 'utils'

使用している環境

今回は ROS は関係ありませんが,一応載せます.

  • 使用PC: Jetson AGX Orin
  • JetPack: 5.1.2
  • CUDA: 11.4
  • cudnn: 8.6
  • python: 3.8
  • tensorflow: 2.12.0
  • ubuntu 20.04
  • ROS noetic

原因: import 方法が違った

正しくは,getconfをインポートすべきだった.

ライブラリをインポート
pip3 install getconf

コード上では,

script.py
import getconf

と記述する.

終わりに

メモとして投稿しました.

0
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
0
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?