Skip site navigation (1) Skip section navigation (2)

Python, MacOSX & PostgreSQL

From: Nathan Wilson <velosa(at)cinenet(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Python, MacOSX & PostgreSQL
Date: 2002-01-04 22:21:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Is anyone else out there trying to get this combo to work?  Anyone know
anyone who might be working on this combo?

I got all the pieces compiled (Python 2.2b3, MacOSX 10.1, PostgreSQL
7.2b3, mx.DateTime 2.0.2).  Python and PostgreSQL are both working, but
when I try to connect to the DB from Python I get 'Connection refused' and
it asks if the server is accepting TCP/IP connections on port 5432.  If I
give psql that as the explicit port it does just fine.  I also tried
moving to a different port and changing the call to _pg.connect, but still
no joy.  Again psql does just fine.  BTW, I built Python as a Framework. 

I've downloaded new latest and greatest (Python 2.2, MacOSX 10.1.2,
PostgreSQL 7.2b4, mx.DateTime 2.0.3), but I'm not terribly hopefully.

Oh, one other note, I have confirmed that python can handle sockets
by setting up pydoc as an http server and accessing it from Netscape.

Any suggestions are most welcome.


In response to


pgsql-novice by date

Next:From: Tom LaneDate: 2002-01-05 00:47:55
Subject: Re: Python, MacOSX & PostgreSQL
Previous:From: Jason EarlDate: 2002-01-04 18:10:17
Subject: Re: Creating db from sql script file

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group