[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

-DPSYCOPG_VERSION="2.5 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090109
-I/home/stevek/pypy/include -I. -I/usr/include/postgresql
-I/usr/include/postgresql/9.1/server -c psycopg/psycopgmodule.c -o

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

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