Re: ImportError with libpq.so.2

Gerhard Häring <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Todd Reed wrote:
> I ended up installing pyPgSQL 2.3 from the source distribution, and this did
> resolve the ImportError.  However, there is an incompatibility between
> pyPgSQL 2.3 and PostgreSQL 7.3.2 (and possibly other 7.3.x releases).  The
> system table pg_type used to have a column called "typprtlen" which is no
> longer present in PostgreSQL 7.3.2. [...]

This change was actually made in revision 1.18 of pyPgSQL/PgSQL.py

(http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pypgsql/pypgsql/pyPgSQL/PgSQL.py)

and is in the 2.3 release. You seem to have old sources lying around.

-- Gerhard



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.