You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-10-14 06:13:37,919 tools_python_utils [INFO] - flatbuffers module is not installed. parse_config will not be available
Traceback (most recent call last):
File "/code/tools/ci_build/build.py", line 65, in <module>
_check_python_version()
File "/code/tools/ci_build/build.py", line 53, in _check_python_version
f"Invalid Python version. At least Python 3.{required_minor_version} is required. "
__main__.UsageError: Invalid Python version. At least Python 3.7 is required. Actual Python version: 3.6.8 (default, Jun 20 2023, 11:42:12)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
The command '/bin/sh -c /code/dockerfiles/scripts/install_centos_arm64.sh && cd /code && CC=/opt/rh/devtoolset-10/root/usr/bin/gcc CXX=/opt/rh/devtoolset-10/root/usr/bin/g++ ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)' returned a non-zero code: 1
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered:
As I wanted to use the tagged version, I updated CentOS python version.
I'm looking forward to use the latest code next time.
Here are my commands to build ONNX Runtime v1.15.1 with python 3.8.10.
(step1) build as-is (with python 3.6.15)
git checkout -b v1.15.1 refs/tags/v1.15.1
cd dockerfiles
docker build -t onnxruntime-source -f Dockerfile.arm64 ..
docker run -it --rm onnxruntime-source
(step2) update python and rebuild
Run stage-0 container.
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
onnxruntime-source latest a0e76562f63e 38 hours ago 613MB
<none><none> d53b63fd2ad9 38 hours ago 2.29GB // stage-0 image. use this
$ docker run -it d53b63fd2ad9 /bin/bash
Describe the issue
Cross compiling for ARM with simulation failed at v 1.16.1.
It looks CentOS7 python version=3.6.8 is old (need 3.7+).
BTW v1.15.1 needs 3.5+, so we didn't have this error.
Urgency
no
Target platform
Ubuntu 20.04 x86_64
Build script
We followed the steps in https://github.com/microsoft/onnxruntime/blob/v1.16.1/dockerfiles/README.md#arm-3264.
git clone https://github.com/microsoft/onnxruntime.git cd onnxruntime git submodule update --init docker build -t onnxruntime-source -f Dockerfile.arm64 ..
Error / output
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: