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
Hi Steve, In general you probably want to avoid C-extensions when running under PyPy. In this case I reccomend using psycopg2cffi instead: https://pypi.python.org/pypi/psycopg2cffi it's basically a drop-in replacement and works well under PyPy. Alex On Fri, May 24, 2013 at 1:36 AM, Steve Kieu <msh.computing@gmail.com> wrote:
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
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
-- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero GPG Key fingerprint: 125F 5C67 DFE9 4084
Thanks, It install cleanly (have not tried to test by making some connection etc.. but hopefuly all good) The MySQL-python works though cheers On Fri, May 24, 2013 at 3:40 PM, Alex Gaynor <alex.gaynor@gmail.com> wrote:
Hi Steve,
In general you probably want to avoid C-extensions when running under PyPy. In this case I reccomend using psycopg2cffi instead: https://pypi.python.org/pypi/psycopg2cffi it's basically a drop-in replacement and works well under PyPy.
Alex
On Fri, May 24, 2013 at 1:36 AM, Steve Kieu <msh.computing@gmail.com>wrote:
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
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
-- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero GPG Key fingerprint: 125F 5C67 DFE9 4084
-- Steve Kieu
participants (2)
-
Alex Gaynor -
Steve Kieu