mittinatten / freesasa

C-library for calculating Solvent Accessible Surface Areas
http://freesasa.github.io/
MIT License
105 stars 37 forks source link

Running setup.py install for freesasa ... error #47

Closed liuxue-123 closed 4 years ago

liuxue-123 commented 4 years ago

Hello, I used $pip install freesasa. python 3.7.3, pip 20.0.2, but there was a problem. Can you help me answer it? Thank you.

I originally used $pip3 install lightdock, but the following error occurred, so I downloaded freesasa and found the following error in freesasa. Running $pip install freesasa fails with this error:

Installing collected packages: freesasa Running setup.py install for freesasa ... error ERROR: Command errored out with exit status 1: command: /home/glp1/anaconda3/envs/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yvy1ai8/freesasa/setup.py'"'"'; file='"'"'/tmp/pip-install-2yvy1ai8/freesasa/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-7yvzzenc/install-record.txt --single-version-externally-managed --compile --install-headers /home/glp1/anaconda3/envs/py37/include/python3.7m/freesasa cwd: /tmp/pip-install-2yvy1ai8/freesasa/ Complete output (15 lines): Define environment variable USE_CYTHON to build from Cython source running install running build running build_ext building 'freesasa' extension creating build creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/lib creating build/temp.linux-x86_64-3.7/lib/src gcc -pthread -B /home/glp1/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilib/src -I. -I/home/glp1/anaconda3/envs/py37/include/python3.7m -c lib/src/classifier.c -o build/temp.linux-x86_64-3.7/lib/src/classifier.o -DHAVE_CONFIG_H -std=gnu99 lib/src/classifier.c:12:10: fatal error: freesasa_internal.h: No such file or directory

include "freesasa_internal.h"

          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /home/glp1/anaconda3/envs/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yvy1ai8/freesasa/setup.py'"'"'; file='"'"'/tmp/pip-install-2yvy1ai8/freesasa/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-7yvzzenc/install-record.txt --single-version-externally-managed --compile --install-headers /home/glp1/anaconda3/envs/py37/include/python3.7m/freesasa Check the logs for full command output.

mittinatten commented 4 years ago

I'm not sure what went wrong, but the C header files were missing in the source distribution. I have published a newer version (2.0.5.post2) where they are included again. I don't know if this will solve your problem, but let me know if it does or doesn't!

mittinatten commented 4 years ago

closing due to inactivity