Skip to content

Instantly share code, notes, and snippets.

@emmettbutler
Created August 27, 2015 23:28
Show Gist options
  • Save emmettbutler/ac5dae34fc6239f4dafd to your computer and use it in GitHub Desktop.
Save emmettbutler/ac5dae34fc6239f4dafd to your computer and use it in GitHub Desktop.
snappymodule.cc:28:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for python-snappy
Failed to build python-snappy
Installing collected packages: python-snappy, pymongo, redis, testinstances
Running setup.py install for python-snappy
Complete output from command /home/emmett/git/parsely/pykafka/.tox/py34/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-qh5t6hw1/python-snappy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7xfs0deh-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/emmett/git/parsely/pykafka/.tox/py34/include/site/python3.4/python-snappy:
running install
running build
running build_py
running build_ext
building '_snappy' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -I/home/emmett/git/parsely/pykafka/.tox/py34/include/python3.4m -c snappymodule.cc -o build/temp.linux-x86_64-3.4/snappymodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
snappymodule.cc:28:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/emmett/git/parsely/pykafka/.tox/py34/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-qh5t6hw1/python-snappy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7xfs0deh-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/emmett/git/parsely/pykafka/.tox/py34/include/site/python3.4/python-snappy" failed with error code 1 in /tmp/pip-build-qh5t6hw1/python-snappy
ERROR: InvocationError: '/home/emmett/git/parsely/pykafka/.tox/py34/bin/pip install -r test-requirements.txt'
pypy create: /home/emmett/git/parsely/pykafka/.tox/pypy
ERROR: InterpreterNotFound: pypy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment