[DB-SIG] Please help: Python/PostgreSQL DateTime.py problems

Andrew Kuchling akuchlin@mems-exchange.org
Thu, 24 May 2001 15:12:59 -0400


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.

--amk