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

pip install issue #12

Closed
hbrunie opened this issue Mar 3, 2020 · 1 comment
Closed

pip install issue #12

hbrunie opened this issue Mar 3, 2020 · 1 comment

Comments

@hbrunie
Copy link

hbrunie commented Mar 3, 2020

I got this error with pip install --user LSSTDESC.Coord

ERROR: Complete output from command /usr/common/software/python/3.7-anaconda-2019.07/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-ifl3r1ty/LSSTDESC.Coord/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-reu7eof6/install-record.txt --single-version-externally-managed --compile --user --prefix=:
ERROR: Python version = 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]
sources = ['src/Angle.cpp']
headers = ['include/Angle_C.h']
Coord version is 1.2.0
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/coord
copying coord/_version.py -> build/lib.linux-x86_64-3.7/coord
copying coord/util.py -> build/lib.linux-x86_64-3.7/coord
copying coord/angle.py -> build/lib.linux-x86_64-3.7/coord
copying coord/init.py -> build/lib.linux-x86_64-3.7/coord
copying coord/celestial.py -> build/lib.linux-x86_64-3.7/coord
copying coord/angleunit.py -> build/lib.linux-x86_64-3.7/coord
creating build/lib.linux-x86_64-3.7/coord/include
copying coord/include/Angle_C.h -> build/lib.linux-x86_64-3.7/coord/include
running build_ext
building 'coord._coord' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /usr/common/software/python/3.7-anaconda-2019.07/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/common/software/python/3.7-anaconda-2019.07/include/python3.7m -c src/Angle.cpp -o build/temp.linux-x86_64-3.7/src/Angle.o
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
g++ -pthread -shared -B /usr/common/software/python/3.7-anaconda-2019.07/compiler_compat -L/usr/common/software/python/3.7-anaconda-2019.07/lib -Wl,-rpath=/usr/common/software/python/3.7-anaconda-2019.07/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/Angle.o -o build/lib.linux-x86_64-3.7/coord/_coord.cpython-37m-x86_64-linux-gnu.so
/usr/common/software/python/3.7-anaconda-2019.07/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/Angle.o: unable to initialize decompress status for section .debug_info
/usr/common/software/python/3.7-anaconda-2019.07/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/Angle.o: unable to initialize decompress status for section .debug_info
/usr/common/software/python/3.7-anaconda-2019.07/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/Angle.o: unable to initialize decompress status for section .debug_info
/usr/common/software/python/3.7-anaconda-2019.07/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/Angle.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/src/Angle.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/common/software/python/3.7-anaconda-2019.07/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-ifl3r1ty/LSSTDESC.Coord/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-reu7eof6/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-ifl3r1ty/LSSTDESC.Coord/

@hbrunie hbrunie closed this as completed Mar 4, 2020
@hbrunie
Copy link
Author

hbrunie commented Mar 4, 2020

Error was due to using conda 4.7. Updating to 4.8.2. solved it (Thanks Johannes Baschke)

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