[Tutor] Python and SQL

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 27 Jun 2001 13:55:53 -0700 (PDT)


On Wed, 27 Jun 2001, Deirdre Saoirse Moen wrote:

> At 10:38 PM -0400 6/27/01, Joachim Th=F6ne wrote:
> >By trying what I've just learned ( Thanks Deidre), Idle displayed the
> >following error message:
> >
> >>>>  import pgdb
> >Traceback (most recent call last):
> >   File "<pyshell#0>", line 1, in ?
> >     import pgdb
> >   File "/usr/lib/python2.1/site-packages/pgdb.py", line 65, in ?
> >     except ImportError: import DateTime
> >ImportError: No module named DateTime
> >>>>
> >
> >As a Python newbie of course I don't know a Module named 'DataTime'. So
> >here is my question:
> >Where can I find that module?
>=20
> A lot of the database libraries rely on mxDateTime (which allows=20
> dates outside the Unix epoch). I can't remember where to find that=20
> offhand.
>=20

mxDateTime is a part of the collection of modules in mx-base here:

    http://www.lemburg.com/files/python/eGenix-mx-Extensions.html#mxBASE

There's a windows installer, so with some luck, it should install well.