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

Error on pip install cysignals_config.h: No such file or directory #75

Closed
vinklein opened this issue Mar 15, 2018 · 5 comments
Closed

Comments

@vinklein
Copy link

I have an error on install with the current master branch version.
Both with python2 and python3
OS : Ubuntu 16.04

Complete trace :

pip install . --user

Processing /home/vklein/odk/cysignals
Installing collected packages: cysignals
  Running setup.py install for cysignals ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-x919a73t-build/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-ppk_4foj-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    Compiling src/cysignals/signals.pyx because it changed.
    Compiling src/cysignals/pysignals.pyx because it depends on /home/vklein/.local/lib/python3.5/site-packages/Cython/Includes/libc/string.pxd.
    Compiling src/cysignals/alarm.pyx because it depends on /home/vklein/.local/lib/python3.5/site-packages/Cython/Includes/posix/types.pxd.
    Compiling src/cysignals/pselect.pyx because it depends on /home/vklein/.local/lib/python3.5/site-packages/Cython/Includes/libc/string.pxd.
    Compiling src/cysignals/tests.pyx because it changed.
    [1/5] Cythonizing src/cysignals/signals.pyx
    [2/5] Cythonizing src/cysignals/tests.pyx
    [3/5] Cythonizing src/cysignals/pysignals.pyx
    [4/5] Cythonizing src/cysignals/alarm.pyx
    [5/5] Cythonizing src/cysignals/pselect.pyx
    running build_py
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/__init__.py -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/signals.pxi -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/memory.pxi -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/signals.pxd -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/pysignals.pxd -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/memory.pxd -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/pxi_warning.h -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/struct_signals.h -> build/lib.linux-x86_64-3.5/cysignals
    copying src/cysignals/macros.h -> build/lib.linux-x86_64-3.5/cysignals
    copying build/src/cysignals/signals.h -> build/lib.linux-x86_64-3.5/cysignals
    copying build/src/cysignals/debug.h -> build/lib.linux-x86_64-3.5/cysignals
    running build_ext
    building 'cysignals.signals' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/build
    creating build/temp.linux-x86_64-3.5/build/src
    creating build/temp.linux-x86_64-3.5/build/src/cysignals
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -U_FORTIFY_SOURCE -Isrc/cysignals -Ibuild/src -Ibuild/src/cysignals -I/usr/include/python3.5m -c build/src/cysignals/signals.c -o build/temp.linux-x86_64-3.5/build/src/cysignals/signals.o
    In file included from build/src/cysignals/signals.c:600:0:
    build/src/cysignals/struct_signals.h:25:30: fatal error: cysignals_config.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-x919a73t-build/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-ppk_4foj-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-x919a73t-build/
@jdemeyer
Copy link
Collaborator

jdemeyer commented Mar 15, 2018

Do you know the exact steps to reproduce, starting from a fresh clone of the git repo?

@jdemeyer
Copy link
Collaborator

If not, can you show the output of git status and ls -l --fulltime from the cysignals source directory?

@vinklein
Copy link
Author

git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	.idea/

nothing added to commit but untracked files present (use "git add" to track)

.idea being project setting PyCharm.
ls -l --full-time

total 264
drwxr-xr-x 2 vklein vklein   4096 2018-03-15 11:29:40.418791044 +0100 autom4te.cache
drwxrwxr-x 6 vklein vklein   4096 2018-03-09 18:03:33.605471009 +0100 build
-rw-rw-r-- 1 vklein vklein  13373 2018-03-09 18:03:26.393283672 +0100 config.log
-rwxrwxr-x 1 vklein vklein  22255 2018-03-09 18:03:26.329282010 +0100 config.status
-rwxrwxr-x 1 vklein vklein 135989 2018-03-15 11:29:40.454792551 +0100 configure
-rw-rw-r-- 1 vklein vklein   2803 2018-03-15 10:51:27.066842943 +0100 configure.ac
drwxr-xr-x 2 vklein vklein   4096 2018-02-13 10:27:12.102747279 +0100 cysignals.egg-info
drwxr-xr-x 2 vklein vklein   4096 2018-03-09 15:44:46.776767028 +0100 dist
drwxr-xr-x 3 vklein vklein   4096 2018-01-22 16:35:07.304436600 +0100 docs
drwxr-xr-x 4 vklein vklein   4096 2018-03-15 11:21:56.691652733 +0100 example
-rw-r--r-- 1 vklein vklein   7651 2018-01-22 16:35:07.304436600 +0100 LICENSE
-rw-rw-r-- 1 vklein vklein   4266 2018-03-15 11:21:56.691652733 +0100 Makefile
-rw-rw-r-- 1 vklein vklein    222 2018-03-09 16:48:47.315360603 +0100 MANIFEST.in
-rw-r--r-- 1 vklein vklein    854 2018-01-22 16:35:07.304436600 +0100 README.rst
-rw-r--r-- 1 vklein vklein     40 2018-01-22 16:35:07.304436600 +0100 readthedocs-conda.yml
-rw-r--r-- 1 vklein vklein     86 2018-01-22 16:35:07.304436600 +0100 readthedocs.yml
-rw-rw-r-- 1 vklein vklein     36 2018-03-15 10:51:27.070843124 +0100 requirements.txt
-rwxrwxr-x 1 vklein vklein   1883 2018-03-15 11:21:56.691652733 +0100 rundoctests.py
-rwxrwxr-x 1 vklein vklein   5888 2018-03-15 11:21:56.691652733 +0100 setup.py
drwxr-xr-x 4 vklein vklein   4096 2018-03-15 11:29:40.670801590 +0100 src
-rwxr-xr-x 1 vklein vklein   1564 2018-01-22 16:35:07.308436711 +0100 testgdb.py
-rw-rw-r-- 1 vklein vklein      6 2018-03-15 10:51:27.066842943 +0100 VERSION

@jdemeyer
Copy link
Collaborator

I see. This happens when upgrading the build tree from an older version. Doing make clean first should fix it.

@vinklein
Copy link
Author

Thanks

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