From: <gh...@gh...> - 2003-07-30 20:13:28
|
Jorge Godoy wrote: > Hi! > > > We have a machine here with Windows XP and we're having some error > messages when trying to query the database. Is there some secret to > make it work? We're using pyPgSQL 2.4 compyled for Python 2.2 from the > SF website. > [...] > File "C:\PYTHON22\Lib\site-packages\pyPgSQL\PgSQL.py", line 789, in > getTypeInfo > _res = self.__conn.conn.query("SELECT typname, typprtlen, typelem " > libpq.OperationalError: ERROR: Attribute "typprtlen" not found You're not using pyPgSQL 2.4. Instead you're using a much older pyPgSQL version which isn't compatible with PostgreSQL 7.3, yet. In pyPgSQL 2.4, this line looks differently. > Any hints? Yes, be sure you have pyPgSQL 2.4 installed. Uninstall/remove any older pyPgSQL files. -- Gerhard |