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

pip3 install LSSTDESC.Coord fails on macos 11.3 #14

Closed
mygregstuff opened this issue Feb 21, 2021 · 1 comment
Closed

pip3 install LSSTDESC.Coord fails on macos 11.3 #14

mygregstuff opened this issue Feb 21, 2021 · 1 comment

Comments

@mygregstuff
Copy link

mygregstuff commented Feb 21, 2021

input


pip3 install LSSTDESC.Coord

output


Collecting LSSTDESC.Coord
  Using cached LSSTDESC.Coord-1.2.1.tar.gz (48 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.9/site-packages (from LSSTDESC.Coord) (1.20.1)
Requirement already satisfied: future in /usr/local/lib/python3.9/site-packages (from LSSTDESC.Coord) (0.18.2)
Requirement already satisfied: cffi in /usr/local/lib/python3.9/site-packages (from LSSTDESC.Coord) (1.14.5)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi->LSSTDESC.Coord) (2.20)
Building wheels for collected packages: LSSTDESC.Coord
  Building wheel for LSSTDESC.Coord (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"'; __file__='"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-wheel-0uuh90xl
       cwd: /private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/
  Complete output (26 lines):
  Python version =  3.9.1 (default, Feb  3 2021, 07:38:02)
  [Clang 12.0.0 (clang-1200.0.32.29)]
  sources =  ['src/Angle.cpp']
  headers =  ['include/Angle_C.h']
  Coord version is 1.2.1
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11-x86_64-3.9
  creating build/lib.macosx-11-x86_64-3.9/coord
  copying coord/_version.py -> build/lib.macosx-11-x86_64-3.9/coord
  copying coord/util.py -> build/lib.macosx-11-x86_64-3.9/coord
  copying coord/angle.py -> build/lib.macosx-11-x86_64-3.9/coord
  copying coord/__init__.py -> build/lib.macosx-11-x86_64-3.9/coord
  copying coord/celestial.py -> build/lib.macosx-11-x86_64-3.9/coord
  copying coord/angleunit.py -> build/lib.macosx-11-x86_64-3.9/coord
  creating build/lib.macosx-11-x86_64-3.9/coord/include
  copying coord/include/Angle_C.h -> build/lib.macosx-11-x86_64-3.9/coord/include
  running build_ext
  building 'coord._coord' extension
  creating build/temp.macosx-11-x86_64-3.9
  creating build/temp.macosx-11-x86_64-3.9/src
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -Iinclude -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/Angle.cpp -o build/temp.macosx-11-x86_64-3.9/src/Angle.o
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for LSSTDESC.Coord
  Running setup.py clean for LSSTDESC.Coord
Failed to build LSSTDESC.Coord
Installing collected packages: LSSTDESC.Coord
    Running setup.py install for LSSTDESC.Coord ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"'; __file__='"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-record-vd9ddu5q/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/LSSTDESC.Coord
         cwd: /private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/
    Complete output (26 lines):
    Python version =  3.9.1 (default, Feb  3 2021, 07:38:02)
    [Clang 12.0.0 (clang-1200.0.32.29)]
    sources =  ['src/Angle.cpp']
    headers =  ['include/Angle_C.h']
    Coord version is 1.2.1
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/coord
    copying coord/_version.py -> build/lib.macosx-11-x86_64-3.9/coord
    copying coord/util.py -> build/lib.macosx-11-x86_64-3.9/coord
    copying coord/angle.py -> build/lib.macosx-11-x86_64-3.9/coord
    copying coord/__init__.py -> build/lib.macosx-11-x86_64-3.9/coord
    copying coord/celestial.py -> build/lib.macosx-11-x86_64-3.9/coord
    copying coord/angleunit.py -> build/lib.macosx-11-x86_64-3.9/coord
    creating build/lib.macosx-11-x86_64-3.9/coord/include
    copying coord/include/Angle_C.h -> build/lib.macosx-11-x86_64-3.9/coord/include
    running build_ext
    building 'coord._coord' extension
    creating build/temp.macosx-11-x86_64-3.9
    creating build/temp.macosx-11-x86_64-3.9/src
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -Iinclude -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/Angle.cpp -o build/temp.macosx-11-x86_64-3.9/src/Angle.o
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"'; __file__='"'"'/private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-install-2gs2ke7j/lsstdesc-coord_dfd6de50baee444793242bd20e344b45/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/hj/v7lww1r17vd9m_63ld51ktvh0000gn/T/pip-record-vd9ddu5q/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/LSSTDESC.Coord Check the logs for full command output.
@mygregstuff
Copy link
Author

mygregstuff commented Feb 21, 2021

Removing command line tools and reinstalling fixed the error. looks like clang was having trouble with macos version number being greater than 10?

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

1 participant