From: Chris W. <cw...@cf...> - 2003-06-12 03:35:09
|
Greetings, I am having trouble connecting to a FreeBSD PostGreSQL server using a Windows 95 client. The code runs _fine_ on several Win98 clients on the same network. The command that breaks is as follows: _______ self.db = PgSQL.connect( user = self.uid, host = self.hostname, database = self.dbname, password = self.pwd ) ________ The error message I get is as follows: ______ File "C:\Python22\Lib\site-packages\pyPgSQL\PgSQL.py", line 2118, in connect return Connection(connInfo, client_encoding, unicode_results) File "C:\Python22\Lib\site-packages\pyPgSQL\PgSQL.py", line 2215, in __init__ raise DatabaseError, m libpq.DatabaseError: unknown host name: 192.168.1.160 ________ Here are the relevant software versions: ________ Client: Windows 95 ActivePython 2.2.2 build 224 egenix-mx-base-2.0.4.win32-py2.2 pyPgSQL-2.3.win32-py2.2 wxPythonWIN32-2.4.0.7-Py22 Server: IP: 192.168.1.160 FreeBSD 4.7 postgresql-7.2.1_1 __________ The Win 95 box seems to have good network connectivity, at least it happily accesses a SAMBA server running on the same FreeBSD box as the database. Any clues are, as always, much appreciated. Thanks, Chris |