zauddelig / py-bcrypt

Automatically exported from code.google.com/p/py-bcrypt
Other
0 stars 0 forks source link

bcrypt/bcrypt_python.c:18:20: fatal error: Python.h: No such file or directory #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. wget http://py-bcrypt.googlecode.com/files/py-bcrypt-0.4.tar.gz 
2. tar xzvf py-bcrypt-0.4.tar.gz && cd py-bcrypt-0.4
3. python setup.py build && python setup.py install

What is the expected output? What do you see instead?
Expected? Clean Build and Install.

sudo python setup.py build && python setup.py install
running build
running build_py
running build_ext
building 'bcrypt._bcrypt' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bcrypt/bcrypt.c -o 
build/temp.linux-x86_64-2.7/bcrypt/bcrypt.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bcrypt/bcrypt_pbkdf.c -o 
build/temp.linux-x86_64-2.7/bcrypt/bcrypt_pbkdf.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bcrypt/bcrypt_python.c -o 
build/temp.linux-x86_64-2.7/bcrypt/bcrypt_python.o
bcrypt/bcrypt_python.c:18:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?
*Clean Debian 7.5 Copy in a VM
*Debian 7 on 2 different KVM Servers
*Python2.7 (Clean Debian 7.5 Copy and Debian 7 Server), Python3.* Debian 7 
Server
*bcrypt-0.4 on all 3 servers (see the command above)

Please provide any additional information below.

Original issue reported on code.google.com by sebastia...@gmail.com on 2 Jun 2014 at 10:21

GoogleCodeExporter commented 8 years ago
You probably need to install the corresponding python development packages. On 
Ubuntu, it's libpython-dev but it might be something else on Debian.

Original comment by d...@djm.net.au on 3 Jun 2014 at 2:04