Hi, Expert,
onnx 1.7.0 didn't work on my side. Can I upgrade to 1.14.0 ? pls help to share your comments.
Requirement already satisfied: protobuf in /home/fredy/.local/lib/python3.10/site-packages (from onnx==1.7.0) (3.20.3) Requirement already satisfied: numpy in /home/fredy/.local/lib/python3.10/site-packages (from onnx==1.7.0) (1.23.0) Requirement already satisfied: six in /usr/lib/python3/dist-packages (from onnx==1.7.0) (1.16.0) Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/fredy/.local/lib/python3.10/site-packages (from onnx==1.7.0) (4.6.3) Building wheels for collected packages: onnx Building wheel for onnx (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for onnx (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [94 lines of output] fatal: not a git repository (or any of the parent directories): .git /tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead. By 2023-Sep-26, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) running bdist_wheel running build running build_py running create_version running cmake_build Traceback (most recent call last): File "/home/fredy/.local/bin/cmake", line 5, in <module> from cmake import cmake ModuleNotFoundError: No module named 'cmake' Traceback (most recent call last): File "/home/fredy/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/home/fredy/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/fredy/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 434, in build_wheel return self._build_with_temp_dir( File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir self.run_setup() File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "<string>", line 321, in <module> File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 107, in setup return distutils.core.setup(**attrs) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1233, in run_command super().run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/wheel/bdist_wheel.py", line 364, in run self.run_command("build") File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1233, in run_command super().run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 131, in run self.run_command(cmd_name) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1233, in run_command super().run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "<string>", line 217, in run File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1233, in run_command super().run_command(command) File "/tmp/pip-build-env-d6c4qibr/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "<string>", line 203, in run File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/fredy/.local/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-310-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/tmp/pip-install-s0lf2ci3/onnx_5ff923c3665f473e8b9eb629e1e9089c']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for onnx Failed to build onnx ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects
Regards,
Fredy Zhang