I think to have found a fix to the problem mentioned in my previous
email. This was the story: after installing psycopg on MacOSX when I
tried to import psycopg module in python I got the following error
message:
mportError: Failure linking new module: : dyld: python2.3 Undefined
symbols:
_PQprotocolVersion
Looking at the compiling output carefully I found the following lines:
cursor.c: In function `alloc_keeper':
cursor.c:438: warning: implicit declaration of function
`PQprotocolVersion'
cursor.c: At top level:
It turned out that PQprotocolVersion has been introduced since
PostgreSQL v7.4 and it's not present in previous versions (I've
searched for it in the documentation on the PostgreSQL site, I've
PostgreSQL v7.3.4 installed).
Looking at the psycopg source files I've noticed that PQprotocolVersion
it's called only at line 438 of cursor.c file and it seems to be used
only as debugging code. So, in order to fix the problem, I've patched
the source (my patch file is attached to this email). I know, my patch
is very rough and I think you can add some code to verify which
PostgreSQL's version is running and then act in a proper manner....
In the meanwhile I've tried some of the examples in the doc directory
and everything seems to work well. Nevertheless I'm wondering how this
bug could have been unnoticed by the other users on the other
platforms.
Thanks,
Andrea.
psycopg-py23.patch
Description: Binary data
---
Andrea Riciputi
"Science is like sex: sometimes something useful comes out,
but that is not the reason we are doing it" -- (Richard Feynman)
_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/+sw@xxxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/psycopg
|