Need assistance with software versions for Jetpack 5.1.1 on Orin nano

Hello everybody;

I messed up my Jetson Orin enviroment (i.e train.py no longer works). Below is the current list of software versions. Is there a problem with any of the versions currently installed?

Release: 5.10.104-tegra
Python: 3.8.10
CUDA: 11.4.315
cudunn: 8.6.0.166
TensorRT: 8.5.2.2
L4T: 35.3.1
Jetpack: 5.1.1
NumPy version: 1.24.3

Hi,

Could you share the error/log you met when training with us?
Thanks.

Here is the traceback of the train.py
I think it may be the version of the numpy.

Traceback (most recent call last):
File “/home/greyhare/jetson-inference/python/training/classification/train.py”, line 29, in
from torch.utils.tensorboard import SummaryWriter
File “/usr/local/lib/python3.8/dist-packages/torch/utils/tensorboard/init.py”, line 12, in
from .writer import FileWriter, SummaryWriter # noqa: F401
File “/usr/local/lib/python3.8/dist-packages/torch/utils/tensorboard/writer.py”, line 16, in
from ._embedding import (
File “/usr/local/lib/python3.8/dist-packages/torch/utils/tensorboard/_embedding.py”, line 9, in
_HAS_GFILE_JOIN = hasattr(tf.io.gfile, “join”)
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorboard/lazy.py”, line 65, in getattr
return getattr(load_once(self), attr_name)
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorboard/lazy.py”, line 97, in wrapper
cache[arg] = f(arg)
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorboard/lazy.py”, line 50, in load_once
module = load_fn()
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorboard/compat/init.py”, line 45, in tf
import tensorflow
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/init.py”, line 38, in
from tensorflow.python.tools import module_util as _module_util
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/init.py”, line 45, in
from tensorflow.python.feature_column import feature_column_lib as feature_column
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/feature_column/feature_column_lib.py”, line 18, in
from tensorflow.python.feature_column.feature_column import *
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/feature_column/feature_column.py”, line 143, in
from tensorflow.python.layers import base
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/layers/base.py”, line 16, in
from tensorflow.python.keras.legacy_tf_layers import base
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/keras/init.py”, line 25, in
from tensorflow.python.keras import models
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/keras/models.py”, line 25, in
from tensorflow.python.keras.engine import training_v1
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/training_v1.py”, line 46, in
from tensorflow.python.keras.engine import training_arrays_v1
File “/home/greyhare/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/training_arrays_v1.py”, line 37, in
from scipy.sparse import issparse # pylint: disable=g-import-not-at-top
File “/usr/lib/python3/dist-packages/scipy/sparse/init.py”, line 229, in
from .base import *
File “/usr/lib/python3/dist-packages/scipy/sparse/base.py”, line 8, in
from .sputils import (isdense, isscalarlike, isintlike,
File “/usr/lib/python3/dist-packages/scipy/sparse/sputils.py”, line 16, in
supported_dtypes = [np.typeDict for x in supported_dtypes]
File “/usr/lib/python3/dist-packages/scipy/sparse/sputils.py”, line 16, in
supported_dtypes = [np.typeDict for x in supported_dtypes]
File “/home/greyhare/.local/lib/python3.8/site-packages/numpy/init.py”, line 320, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module ‘numpy’ has no attribute ‘typeDict’

Thanks for the reply

Hello everybody just wanted to let you know I found a fix. I’m not sure if numpy version 1.22 is the correct one. But it works. Below is the fix for my problem.

pip install numpy==1.22

Good to know it works now.
Thanks a lot for the feedback.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.