[pypy-dev] Fail to compile psycopg2

Steve Kieu msh.computing at gmail.com
Fri May 24 07:36:51 CEST 2013


Hello All,

I tried to install psycopg2 but failed with the following message


building 'psycopg2._psycopg' extension

cc -O2 -fPIC -Wimplicit -DPSYCOPG_DEFAULT_PYDATETIME=1
-DPSYCOPG_VERSION="2.5 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090109
-DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1
-I/home/stevek/pypy/include -I. -I/usr/include/postgresql
-I/usr/include/postgresql/9.1/server -c psycopg/psycopgmodule.c -o
build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o
-Wdeclaration-after-statement

In file included from psycopg/psycopgmodule.c:38:0:

./psycopg/error.h:32:5: error: unknown type name ‘PyBaseExceptionObject’

error: command 'cc' failed with exit status 1


Looks like the python header from pypy does not declare
PyBaseExceptionObject

Any way to fix this?

Thanks in adanvace,



-- 
Steve Kieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130524/7afda216/attachment.html>


More information about the pypy-dev mailing list