[Tutor] PyGreSQL problem

Lloyd Kvam pythontutor@venix.com
Sat, 02 Feb 2002 13:07:21 -0500


My best guess is the Lemburg mxDateTime module.
http://www.lemburg.com/files/python/mxDateTime.html
mxDateTime - Date/time types for Python

The mx doesn't appear in your Python code. simply import DateTime
and you are in business.  This is a very comprehensive module.

mikalzet@libero.it wrote:

> 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 ?
> 
> 


-- 
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice: 
603-443-6155
fax: 
801-459-9582