PyTorch for Jetson - version 1.7.0 now available

When I try to verify my pytorch installation, it gives me
"python3 -c “import torchvision; print(torchvision.version)”
Illegal instruction (core dumped)
"

OK, that worked, thanks!

torchlight appears to be a separate package that I am not familiar with, so you would need to make sure the correct version that your project expects is installed.

Is it possible that you upgraded pip3? If so, it may have upgraded numpy, and there is a bug in numpy v1.19.5: Illegal instruction (core dumped) on import for numpy 1.19.5 on ARM64 · Issue #18131 · numpy/numpy · GitHub

As a workaround, export OPENBLAS_CORETYPE=ARMV8 first.

Thanks. It worked

Are you familiar with h5py? When downloading h5py it keeps giving errors:
“Using cached h5py-3.1.0.tar.gz (371 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Installing backend dependencies … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.8/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-tiye2d9d/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – ‘numpy==1.19.3; python_version >= “3.9”’ ‘Cython>=0.29.14; python_version >= “3.8”’ ‘numpy==1.12; python_version == “3.6”’ ‘numpy==1.17.5; python_version == “3.8”’ ‘Cython>=0.29; python_version < “3.8”’ pkgconfig ‘numpy==1.14.5; python_version == “3.7”’
cwd: None
Complete output (719 lines):
Ignoring numpy: markers ‘python_version >= “3.9”’ don’t match your environment
Ignoring numpy: markers ‘python_version == “3.6”’ don’t match your environment
Ignoring Cython: markers ‘python_version < “3.8”’ don’t match your environment
Ignoring numpy: markers ‘python_version == “3.7”’ don’t match your environment
Collecting Cython>=0.29.14
Using cached Cython-0.29.22-py2.py3-none-any.whl (980 kB)
Collecting numpy==1.17.5
Using cached numpy-1.17.5.zip (6.4 MB)
Collecting pkgconfig
Using cached pkgconfig-1.5.2-py2.py3-none-any.whl (6.4 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status ‘error’
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”’"’/tmp/pip-install-5uzaorju/numpy_24ecee83328646b09eb3ad01f0d03151/setup.py’"’"’; file=’"’"’/tmp/pip-install-5uzaorju/numpy_24ecee83328646b09eb3ad01f0d03151/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-v0_2az6f
cwd: /tmp/pip-install-5uzaorju/numpy_24ecee83328646b09eb3ad01f0d03151/
Complete output (341 lines):
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE
"

Sorry, I am not familiar with h5py, although I think you can install it with sudo apt-get install python3-h5py

You may also want to try this suggestion to install BLAS/LAPACK first:

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran

If that still doesn’t fix it, you may want to post a new topic about it. Thanks.