Skip to content
New issue

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

MacBook installation related environment failed #120

Open
baba990aini opened this issue Sep 26, 2024 · 1 comment
Open

MacBook installation related environment failed #120

baba990aini opened this issue Sep 26, 2024 · 1 comment

Comments

@baba990aini
Copy link

My computer is MacBook Pro M3Pro and comes with Python 3. After setting the environment variable for pip, I installed it

  1. Use:
    git clone https://github.com/VAST-AI-Research/TripoSR.git
    Pulled the code
  2. Use:
    pip install rembg
  3. 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_lockstd::shared_mutex;
^
/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)
`

@koiker
Copy link

koiker commented Oct 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants