My computer is MacBook Pro M3Pro and comes with Python 3. After setting the environment variable for pip, I installed it
Use:
git clone https://github.com/VAST-AI-Research/TripoSR.git
Pulled the code
Use:
pip install rembg
Use:
pip install git+ https://github.com/tatsy/torchmcubes.git @3aef8afa5f21b113afc4f4ea148baee850cbd472
An error has occurred
Here are some core error prompts
`Building wheels for collected packages: torchmcubes
Building wheel for torchmcubes (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [355 lines of output]
CUDA environment was not successfully loaded!
Build only CPU module!
running bdist_wheel
/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/utils/cpp_extension.py:495: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build/lib.macosx-10.9-universal2-cpython-39/torchmcubes
copying torchmcubes/init.py -> build/lib.macosx-10.9-universal2-cpython-39/torchmcubes
running build_ext
building 'torchmcubes_module' extension
creating build/temp.macosx-10.9-universal2-cpython-39/cxx
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/torch/csrc/api/include -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/TH -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/THC -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c cxx/grid_interp_cpu.cpp -o build/temp.macosx-10.9-universal2-cpython-39/cxx/grid_interp_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=torchmcubes_module -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
using NotLastReference = std::shared_lock;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/shared_mutex:187:104: note: 'shared_mutex' has been explicitly marked unavailable here
_LIBCPP_AVAILABILITY_SHARED_MUTEX _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("shared_mutex")) shared_mutex {
^
en/core/function_schema.h:595:29: error: 'value' is unavailable: introduced in macOS 10.13
arg.default_value().value().isString()) {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
constexpr value_type const& value() const&
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command '/usr/bin/clang++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torchmcubes
Running setup.py clean for torchmcubes
Failed to build torchmcubes
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torchmcubes)
`
I installed on my Macbook Pro with M3 Pro - Sonoma 14.7 without any problems.
I'm using Python 3.12.3 and the pip install -r requirements.txt worked well.
My computer is MacBook Pro M3Pro and comes with Python 3. After setting the environment variable for pip, I installed it
git clone https://github.com/VAST-AI-Research/TripoSR.git
Pulled the codepip install rembg
pip install git+ https://github.com/tatsy/torchmcubes.git @3aef8afa5f21b113afc4f4ea148baee850cbd472
An error has occurredHere are some core error prompts `Building wheels for collected packages: torchmcubes Building wheel for torchmcubes (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [355 lines of output] CUDA environment was not successfully loaded! Build only CPU module! running bdist_wheel /Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/utils/cpp_extension.py:495: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build/lib.macosx-10.9-universal2-cpython-39/torchmcubes copying torchmcubes/init.py -> build/lib.macosx-10.9-universal2-cpython-39/torchmcubes running build_ext building 'torchmcubes_module' extension creating build/temp.macosx-10.9-universal2-cpython-39/cxx clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/torch/csrc/api/include -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/TH -I/Users/fengyu/Library/Python/3.9/lib/python/site-packages/torch/include/THC -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c cxx/grid_interp_cpu.cpp -o build/temp.macosx-10.9-universal2-cpython-39/cxx/grid_interp_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=torchmcubes_module -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 using NotLastReference = std::shared_lock;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/shared_mutex:187:104: note: 'shared_mutex' has been explicitly marked unavailable here
_LIBCPP_AVAILABILITY_SHARED_MUTEX _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("shared_mutex")) shared_mutex {
^
en/core/function_schema.h:595:29: error: 'value' is unavailable: introduced in macOS 10.13
arg.default_value().value().isString()) {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
constexpr value_type const& value() const&
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command '/usr/bin/clang++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchmcubes Running setup.py clean for torchmcubes Failed to build torchmcubes ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torchmcubes) `