[mod_python] mod_python / psycopg problems

Daniel Popowich dpopowich at comcast.net
Mon Feb 14 10:29:35 EST 2005


Christoph Pingel writes:
> I'm running mod_python 3.1.3, Python 2.4 and psycopg (PostgreSQL 
> 8.0.1) on a Mac OS X machine. Only recently updated to Python 2.4 and 
> switched from MySQL to Postgres. An application that used to work now 
> stops while trying to import psycopg.
> 
> ImportError: Failure linking new module: : dyld: 
> /opt/local/apache2/bin/httpd Undefined symbols:
> /opt/local/lib/python2.4/site-packages/psycopg.so undefined reference 
> to _PyArg_ParseTuple expected to be defined in the executable
> /opt/local/lib/python2.4/site-packages/psycopg.so undefined reference 
> to _PyArg_ParseTupleAndKeywords expected to be defined in the 
> executable
> /opt/local/lib/python2.4/site-packages/psycopg.so undefined reference 
> to _PyCObject_AsVoidPtr expected to be defined in the executable
> 
> What's happening here, and what should I do? Thanks for any insight.

I'm running a similar config.  When you upgraded to Python 2.4, did
you rebuild all your modules (mod_python, psycopg, etc) against 2.4?
It looks like you have a linker conflict/mismatch somewhere.

Daniel Popowich
-----------------------------------------------
http://home.comcast.net/~d.popowich/mpservlets/


More information about the Mod_python mailing list