Issue 261: Ubuntu 12.04 server x86 / pyodbc-3.0.3 /
Status:  NoFix
Owner: ----
Closed:  Jun 2012
Reported by AntoineB...@gmail.com, May 12, 2012
Trying to install the pyodbc connector under python3.2.2 and I received the bellow error message:

# sudo unzip pyodbc-3.0.3.zip
# cd pyodbc-3.0.3
# sudo python3 setup.py install

running install
running build
running build_ext
building 'pyodbc' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -DPYODBC_VERSION=3.0.3 -I/usr/include/python3.2mu -c /var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.cpp -o build/temp.linux-i686-3.2/var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.o -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.cpp:12:0:
/var/pub/arch/pyodbc-3.0.3/src/pyodbc.h:41:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

please help



Jun 20, 2012
#1 carl.ri...@gmail.com
Have you tried apt-get the python-devel libraries?

Jun 26, 2012
Project Member #2 mkleehammer
Carl is correct.  Closing.
Status: NoFix