|
From: Hector M. M. G. <mi...@gm...> - 2004-12-29 06:22:08
|
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.
===========================================================================
===========================================================================
>>> from pyPgSQL import libpq
>>> libpq.PQconnectdb('host=serverxxx.xxx password=xxxxxxx user=xxx dbname=xxxxxxx')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError:
--
Hector Miuler Malpica Gallegos <mi...@gm...>
|