Re: ImportError with libpq.so.2

"Billy G. Allie" <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
"Todd Reed" wrote:
> I had PostgreSQL 7.21 and pyPgSQL 2.2 installed and working on a RedHat 7.3
> installation.  After upgrading to PostgreSQL 7.3.2, my scripts generated an
> ImportError as shown below:
> 
> I found a copy libqp.so.2 in /usr/lib/pgsql/backup, and copied it to
> /usr/lib.  After that, I received the following error:
> 
> Any suggestions on fixing this problem?

Todd,

1.  remove the libpq.so.2 from /usr/lib.
2.  get the latest source code from CVS or get the source distribution from SF.
3.  build pyPgSQL 2.3 from source.

The backup copy of libpq.so.2 was from the previous version of PostgreSQL
and will not work.  The RPM was not built with the version of libpq.so you
have for the newer version of PostgreSQL.  Building from the source should
resolve the issutes your are expirencing.


-------------------------------------------------------
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.