Re: problems compiling pyscopg2 on RHEL4

Nathan <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Chris, I'm not a psycopg dev, but I'm going to make an educated guess
that since postgres 7.4 was released in 2003, that the API has since
changed.  Can you upgrade to a newer version of postgres?

~ Nathan

On Friday, September 25, 2009, Chris Withers <[email protected]> wrote:
> Hi All,
>
> I installed the following rpms:
>
> postgresql-libs-7.4.19-1.el4_6.1
> postgresql-devel-7.4.19-1.el4_6.1
> postgresql-7.4.19-1.el4_6.1
>
> And then installed psycopg2 as follows:
>
> wget http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz
> tar xzf psycopg2-2.0.12.tar.gz
> cd psycopg2-2.0.12
> python2.6 setup.py install
>
> However, it appears something went wrong:
>
> # python2.6
> Python 2.6.2 (r262:71600, Sep 25 2009, 12:03:16)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import psycopg2
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.6/site-packages/psycopg2/__init__.py", line 60, in <module>
>     from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> ImportError: /usr/local/lib/python2.6/site-packages/psycopg2/_psycopg.so: undefined symbol: PQserverVersion
>
> Has anyone seen this and/or know how to fix it?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
> _______________________________________________
> Psycopg mailing list
> Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
> http://lists.initd.org/mailman/listinfo/psycopg
>
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.