error pypgsql

Hector Miuler Malpica Gallegos <[email protected]> Tue, 23 Nov 2004 15:19:45 -0500
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Hello, I have problems with pypgsql, by means of psql I can be
connected to a server with Postgresql=7.3.6, to a data base in which I
have access to everything.
When attempt to connect to me with pypgsql I cannot, with others
librerias for poststoneware if I can, this is the error message:

>>> from pyPgSQL import PgSQL
>>> c1=PgSQL.connect(user="xxxx", password="xxxxxxx",
host="serverxxx.xxx", database="xxx")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 2211,
in connect
    return Connection(connInfo, client_encoding, unicode_results)
  File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 2331,
in __init__
    raise DatabaseError, m
libpq.DatabaseError: Ivalid format for PgVersion construction.

I have:
python2.3             2.3.4-13 
python2.3-pgsql       2.4.0-5


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/