We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModelCI v1.x.x, CUDA Version vx.x.x, GPU device used...
Modelci installation failed at ONNX 1.6.0
Building wheel for onnx (setup.py) ... error ERROR: Command errored out with exit status 1: command: ~/miniconda3/envs/modelci/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/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-062pqqed cwd: /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/ Complete output (121 lines): fatal: 不是 git 仓库(或者直至挂载点 / 的任何父目录) 停止在文件系统边界(未设置 GIT_DISCOVERY_ACROSS_FILESYSTEM)。 running bdist_wheel running build running build_py running create_version running cmake_build -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Protobuf: /usr/lib/libprotobuf.so (found version "3.12.4") Generated: /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx-ml.proto Generated: /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx-operators-ml.proto -- Found PythonInterp: ~/miniconda3/envs/modelci/bin/python (found version "3.8.5") -- Found PythonLibs: ~/miniconda3/envs/modelci/lib/libpython3.8.so -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Found pybind11: /usr/include (found version "2.6.1" ) -- -- ******** Summary ******** -- CMake version : 3.19.2 -- CMake command : /usr/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 10.2.0 -- CXX flags : -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : /usr/local -- CMAKE_MODULE_PATH : -- -- ONNX version : 1.6.0 -- ONNX NAMESPACE : onnx -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- ONNXIFI_ENABLE_EXT : OFF -- -- Protobuf compiler : /usr/bin/protoc -- Protobuf includes : /usr/include -- Protobuf libraries : /usr/lib/libprotobuf.so -- BUILD_ONNX_PYTHON : ON -- Python version : -- Python executable : ~/miniconda3/envs/modelci/bin/python -- Python includes : ~/miniconda3/envs/modelci/include/python3.8 -- Configuring done -- Generating done -- Build files have been written to: /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build Scanning dependencies of target gen_onnx_proto Scanning dependencies of target onnxifi_dummy Scanning dependencies of target onnxifi_loader [ 4%] Building C object CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o [ 4%] Building C object CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o [ 4%] Running gen_proto.py on onnx/onnx.in.proto /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/onnx/onnxifi_dummy.c: 在函数‘onnxGetExtensionFunctionAddress’中: /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/onnx/onnxifi_dummy.c:173:21: 警告:assignment to ‘onnxExtensionFunctionPointer’ {或称 ‘int (*)(void)’} from incompatible pointer type ‘onnxStatus (*)(void *, const char *, onnxStatus (**)(void))’ {或称 ‘int (*)(void *, const char *, int (**)(void))’} [-Wincompatible-pointer-types] 173 | *function = &onnxGetExtensionFunctionAddress; | ^ /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/onnx/onnxifi_dummy.c:176:21: 警告:assignment to ‘onnxExtensionFunctionPointer’ {或称 ‘int (*)(void)’} from incompatible pointer type ‘onnxStatus (*)(void *, uint32_t, const onnxTensorDescriptorV1 *, uint32_t, const onnxTensorDescriptorV1 *, onnxMemoryFenceV1 *)’ {或称 ‘int (*)(void *, unsigned int, const onnxTensorDescriptorV1 *, unsigned int, const onnxTensorDescriptorV1 *, onnxMemoryFenceV1 *)’} [-Wincompatible-pointer-types] 176 | *function = &onnxSetIOAndRunGraph; | ^ Processing /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/onnx/onnx.in.proto Writing /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx-ml.proto Writing /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx-ml.proto3 generating /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx_pb.py [ 6%] Linking C static library libonnxifi_loader.a [ 8%] Running C++ protocol buffer compiler on /tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/.setuptools-cmake-build/onnx/onnx-ml.proto --python_out: onnx/onnx-ml.proto: Unknown generator option: dllexport_decl [ 9%] Linking C shared library libonnxifi_dummy.so make[2]: *** [CMakeFiles/gen_onnx_proto.dir/build.make:81:onnx/onnx-ml.pb.cc] 错误 1 make[1]: *** [CMakeFiles/Makefile2:269:CMakeFiles/gen_onnx_proto.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... [ 9%] Built target onnxifi_dummy [ 9%] Built target onnxifi_loader make: *** [Makefile:149:all] 错误 2 Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/setup.py", line 315, in <module> setuptools.setup( File "~/miniconda3/envs/modelci/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "~/miniconda3/envs/modelci/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "~/miniconda3/envs/modelci/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "~/miniconda3/envs/modelci/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "~/miniconda3/envs/modelci/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/setup.py", line 209, in run self.run_command('cmake_build') File "~/miniconda3/envs/modelci/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "~/miniconda3/envs/modelci/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-pj1lor_k/onnx_11b7f894e6a74982a41d055aefa0619e/setup.py", line 203, in run subprocess.check_call(build_args) File "~/miniconda3/envs/modelci/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/cmake', '--build', '.', '--', '-j', '8']' returned non-zero exit status 2. ---------------------------------------- ERROR: Failed building wheel for onnx
git clone [email protected]:cap-ntu/ML-Model-CI.git cd ML-Model-CI pip install .
Modelci is installed sucessfully
based on microsoft/onnxruntime#3810 , Onnx v1.7.0 is compatible with python 3.8, Is a upgrade of ONNX version in package requirement avaliable?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Software and Hardware Versions
ModelCI v1.x.x, CUDA Version vx.x.x, GPU device used...
Problem description
Modelci installation failed at ONNX 1.6.0
Steps to Reproduce the Problem
Expected Behavior
Modelci is installed sucessfully
Other Information
based on microsoft/onnxruntime#3810 , Onnx v1.7.0 is compatible with python 3.8, Is a upgrade of ONNX version in package requirement avaliable?
The text was updated successfully, but these errors were encountered: