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
Note: This error originates from the build backend, and is likely not a problem with poetry but with xformers (0.0.26.post1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "xformers (==0.0.26.post1)"'.
env/lib/python3.12/site-packages/torch/include/THC -I/Users/timothyspann/Downloads/code/milvusvenv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c -c /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/xformers/csrc/attention/sddmm.cpp -o /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/build/temp.macosx-13.0-arm64-cpython-312/xformers/csrc/attention/sddmm.o -O3 -std=c++17 -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
clang: error: unsupported option '-fopenmp'
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build
subprocess.run(
File "/opt/homebrew/Cellar/[email protected]/3.12.6/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/setup.py", line 680, in <module>
setuptools.setup(
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 384, in run
self.run_command("build")
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 98, in run
_build_ext.run(self)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/setup.py", line 637, in build_extensions
super().build_extensions()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 866, in build_extensions
build_ext.build_extensions(self)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
self._build_extensions_serial()
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
self.build_extension(ext)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
_build_ext.build_extension(self, ext)
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
objects = self.compiler.compile(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 679, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2121, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers
Failed to build xformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)
Suggested Solutions
No response
The text was updated successfully, but these errors were encountered:
Python -VV
Note: This error originates from the build backend, and is likely not a problem with poetry but with xformers (0.0.26.post1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "xformers (==0.0.26.post1)"'.
Pip Freeze
Reproduction Steps
poetry install
or
pip3 install mistral_inference
Expected Behavior
compile and work
Additional Context
It fails on build of xformers
env/lib/python3.12/site-packages/torch/include/THC -I/Users/timothyspann/Downloads/code/milvusvenv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c -c /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/xformers/csrc/attention/sddmm.cpp -o /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/build/temp.macosx-13.0-arm64-cpython-312/xformers/csrc/attention/sddmm.o -O3 -std=c++17 -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
clang: error: unsupported option '-fopenmp'
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build
subprocess.run(
File "/opt/homebrew/Cellar/[email protected]/3.12.6/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers
Failed to build xformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)
Suggested Solutions
No response
The text was updated successfully, but these errors were encountered: