pyPgSQL && Windows XP

Jorge Godoy <[email protected]> Wed, 30 Jul 2003 16:39:45 -0300
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
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. 

The same packages were installed on a Windows 98 from a client of mine
and everything is working perfectly. I can also access the server from
my application in a Linux machine.

All GRANTs were successful for both users (the W98 and WXP users) and
the database in both servers are configured equally. 

The error message makes me think there's something missing or
misbehaving with pyPgSQL here.

----------------------------------------------------------------------
Traceback (most recent call last):
   File "C:\Documents and
Settings\juliano.G2CTECH\Desktop\Relat\relatorios.py", line 912, in
AtualizarTela
     dados = query.ExecutaBusca(ordenarPor[pagina], filtros)
   File "C:\Documents and
Settings\juliano.G2CTECH\Desktop\Relat\FazBuscas.py", line 107, in
ExecutaBusca
     self.dados.execute(sql_query)
   File "C:\PYTHON22\Lib\site-packages\pyPgSQL\PgSQL.py", line 2612, in execute
     self.__makedesc__()
   File "C:\PYTHON22\Lib\site-packages\pyPgSQL\PgSQL.py", line 2327,
in __makedesc__
     _tn, _pl, _ia, _bt = _cache.getTypeInfo(_typ)
   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
----------------------------------------------------------------------

Any hints?


Thanks in advance,
-- 
Godoy.     <[email protected]>


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01