Psycopg2 date problems: "Can't adapt"

M

mvanier

There was a thread a while back dealing with an error message the
psycopg2 Postgres interface gives when trying to convert some
mxDateTime values: "can't adapt". The answer given was that psycopg2
wasn't finding the mxDateTime include files during setup, so it assumed
they weren't there. I'm having the same problem. I've installed both
packages from source. However, as far as I can tell, the mxDateTime
include files are never copied to the location where psycopg2 expects
them to be (that being /usr/local/include/python2.4/mx on my machine).
Instead, they're scattered throughout
/usr/local/lib/python2.4/site-packages/mx. I could manually copy them
to where psycopg2 wants them to be, but I shouldn't have to. I'm using
mxDateTime 2.06, which (although seemingly quite old) appears to be the
most recent version. Does anyone have any insight into this?

Thanks,

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top