[Tutor] PyGreSQL problem

mikalzet@libero.it mikalzet@libero.it
Sat, 2 Feb 2002 18:33:42 +0100 (CET)


I'm using Python 2.1.1 on a linux mandrake 8.1 system.
The supplied module for interfacing with Postgres is
PyGreSQL.

On python.org/topics/database/modules the voice links to
http://www.druid.net/pygresql

The relevant readme says that the module may be used in two ways:

1) import _pg  :  not api 2.0 compliant; it then goes on to describe how
it works;

2) import pgdb   : api 2.0 compliant wrapper; to use this it says to go to
api 2 documentation

But if I try this I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.1/site-packages/pgdb.py", line 65, in ?
    except ImportError: import DateTime
ImportError: No module named DateTime

so which DateTime module is it looking for ?

-- 
Michele Alzetta