[DB-SIG] Please help: Python/PostgreSQL DateTime.py problems
Thu, 24 May 2001 17:54:14 -0400 (EDT)
THANK YOU! That solved it. I finally have Python talking to PostgreSQL
on both machines (and between machines).
I have another less pressing (and probably much simpler) question:
If I'm running PostgreSQL without the network, what do I tell the
connect()? It really seemed to want a hostname, and wasn't thrilled
with "localhost". Until I added the "-i" to postmaster, both
x.connect("mystuff") and x.connect("localhost:mystuff") failed.
On Thu, 24 May 2001, Andrew Kuchling wrote:
> On Thu, May 24, 2001 at 03:04:40PM -0400, Kevin Cole wrote:
> > File "/usr/lib/python1.5/site-packages/DateTime/DateTime.py", line 90, in ?
> > import sys, os, math, regex, ts_regex, DateTimeZone
> >ImportError: No module named ts_regex
> This is the DateTime package that comes with Zope. It is not the
> DateTime package that the PostgreSQL interface wants; it wants
> mx.DateTime from www.egenix.com. (Not sure why the Zope one is on
> your path...)
> > File "/usr/lib/python1.5/site-packages/pgdb.py", line 65, in ?
> > except ImportError: import DateTime
> >ImportError: No module named DateTime
> This machine has neither Zope nor mx.DateTime on it.
> DB-SIG maillist - DB-SIG@python.org
Kevin Cole, RHCE, Linux Admin | E-mail: firstname.lastname@example.org
Gallaudet Research Institute | WWW: http://gri.gallaudet.edu/~kjcole/
Hall Memorial Bldg S-419 | Voice: (202) 651-5135
Washington, D.C. 20002-3695 | FAX: (202) 651-5746