Comments (5)
@onlyucanconquertime I have this error when try to install using python 3.12.x, if you use python 3.11.x, pip installs successfully
from onnx.
Looks like this is an error calling cmake itself?
from onnx.
i have the same problem with python 3.12.2
from onnx.
Was able to reproduce.
Commands
conda create --name py312 python=3.12
pip install cmake
pip install onnx
Traceback
Traceback (most recent call last):
File "C:\Users\bob.morane\AppData\Local\anaconda3\envs\py312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\bob.morane\AppData\Local\anaconda3\envs\py312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob.morane\AppData\Local\anaconda3\envs\py312\Lib\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 "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 327, in <module>
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run
self.run_command("build")
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 264, in run
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "C:\Users\bob.morane\AppData\Local\Temp\pip-build-env-6wqij0or\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 243, in run
File "C:\Users\bob.morane\AppData\Local\anaconda3\envs\py312\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\bob.morane\\AppData\\Local\\anaconda3\\envs\\py312\\
Scripts\\cmake.EXE', '--build', '.', '--config', 'Release', '--', '/maxcpucount:8']' 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
from onnx.
@ODAncona could you share the full error message? The python stack does not show the cmake errors which should be on its above.
from onnx.
Related Issues (20)
- Schedule CI to run daily on main
- ONNX checker missing context
- Move onnx/examples to /examples
- Is there any plans to support graph transformations (e.g. vmap, gradient, jvp, vjp) similar to jax? HOT 4
- ONNX weekly-1.17.0.dev20240408 has hash issues
- Is there a way to swap a set of parameters inside of an .onnx / .ort graph with an identically shaped set of parameters? HOT 5
- Create test for validating shape-inference methods handle unknown rank inputs
- Define DepthToSpace as function
- Using Pytorch Count of input_names provided during export not matching with session.get_inputs() HOT 1
- ONNX is broken when built with ONNX_USE_LITE_PROTO=OFF (using protobuf-24.4): File already exists in database: onnx/onnx-ml.proto HOT 5
- Schema error trying to create new version of training ops
- ERROR: Could not build wheels for onnx which use PEP 517 and cannot be installed directly HOT 2
- output different between onnx and pytorch HOT 7
- Implement DepthToSpace as a function HOT 2
- Reference implementation of ONNX Reduce sum square is mismatch with ONNX Spec when noop_with_empty_axes == 1 HOT 5
- Clarification of Reshape semantics for attribute 'allowzero' NOT set, zero volume HOT 3
- Change dynamic shape in fixed shape using C++ HOT 1
- The weekly model zoo CI has been failing HOT 12
- Incorrect input names for quantize/dequantize ONNX backend node tests HOT 1
- Fix and test numpy_helper to_array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnx.