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

Errors when using pip3 to install mushi #79

Open
YuchuanXie opened this issue Oct 5, 2024 · 1 comment
Open

Errors when using pip3 to install mushi #79

YuchuanXie opened this issue Oct 5, 2024 · 1 comment

Comments

@YuchuanXie
Copy link

When I use pip3 to install mushi on my mac, I encountered with this problem:

  g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -DNOMATLAB=1 -I/usr/include -I/Users/maxwell/software/miniconda3/envs/mushi_env/include/python3.8 -c src/TVgenopt.cpp -o build/temp.macosx-10.15-x86_64-cpython-38/src/TVgenopt.o -I/usr/local/opt/openblas/include -Isrc
  g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -DNOMATLAB=1 -I/usr/include -I/Users/maxwell/software/miniconda3/envs/mushi_env/include/python3.8 -c src/condat_fast_tv.cpp -o build/temp.macosx-10.15-x86_64-cpython-38/src/condat_fast_tv.o -I/usr/local/opt/openblas/include -Isrc
  g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -DNOMATLAB=1 -I/usr/include -I/Users/maxwell/software/miniconda3/envs/mushi_env/include/python3.8 -c src/johnsonRyanTV.cpp -o build/temp.macosx-10.15-x86_64-cpython-38/src/johnsonRyanTV.o -I/usr/local/opt/openblas/include -Isrc
  g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -DNOMATLAB=1 -I/usr/include -I/Users/maxwell/software/miniconda3/envs/mushi_env/include/python3.8 -c src/utils.cpp -o build/temp.macosx-10.15-x86_64-cpython-38/src/utils.o -I/usr/local/opt/openblas/include -Isrc
  g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -I/Users/maxwell/software/miniconda3/envs/mushi_env/include -arch x86_64 -bundle -undefined dynamic_lookup build/temp.macosx-10.15-x86_64-cpython-38/build/temp.macosx-10.15-x86_64-cpython-38/_prox_tv.o build/temp.macosx-10.15-x86_64-cpython-38/src/LPopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TV2DWopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TV2Dopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL1Wopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL1opt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL1opt_hybridtautstring.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL1opt_kolmogorov.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL1opt_tautstring.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVL2opt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVLPopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVNDopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/TVgenopt.o build/temp.macosx-10.15-x86_64-cpython-38/src/condat_fast_tv.o build/temp.macosx-10.15-x86_64-cpython-38/src/johnsonRyanTV.o build/temp.macosx-10.15-x86_64-cpython-38/src/utils.o -lblas -llapack -o build/lib.macosx-10.15-x86_64-cpython-38/_prox_tv.abi3.so /usr/local/opt/openblas/lib
  ld: file cannot be mmap()ed, errno=22 path=/usr/local/opt/openblas/lib in '/usr/local/opt/openblas/lib'
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command '/usr/bin/g++' 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 prox-tv-SDIST
Running setup.py clean for prox-tv-SDIST
Failed to build prox-tv-SDIST
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (prox-tv-SDIST)

What happened? My device is MacOS Sonoma 14.4.1.

@wsdewitt
Copy link
Collaborator

I was not able to reproduce this problem. I am able to install on Mac OS 15.1.1 Sequoia by creating a conda environment with python 3.12 and pip, and installing mushi with pip install --use-pep517 mushi.

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