MIVisionX
MIVisionX copied to clipboard
[Issue]: Setup - Installation failure on SLES [SWDEV-453318]
Problem Description
MIVisionX-setup.py script fails to install numpy & onnx on SLES-15/RHEL8 system
1. Numpy version 1.21 not supported.
- Solution : We can use numpy==1.19 which is a default version for SLES-15.
pip3 install numpy==1.21
ERROR: Could not find a version that satisfies the requirement numpy==1.21 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5)
ERROR: No matching distribution found for numpy==1.21
2. Onnx installation fails
sudo pip3 install onnx==1.12.0
Collecting onnx==1.12.0
Downloading onnx-1.12.0.tar.gz (10.1 MB)
...
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3inri0nv/onnx_3db281e0ec96454c8e514ea362e53403/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3inri0nv/onnx_3db281e0ec96454c8e514ea362e53403/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t80k9sc4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6m/onnx Check the logs for full command output.
Operating System
SLES-15-SP-5
CPU
AMD Ryzen Threadripper 1900X
GPU
AMD Radeon VII
Other
No response
ROCm Version
ROCm 6.0.0
ROCm Component
MIVisionX
Steps to Reproduce
sudo docker run -it --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --group-add 44 -it -v $HOME/dockerx:/dockerx compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-rel-6.1:64-sles-stg2
python3 MIVisionX-setup.py --reinstall ON
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response