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

Kevin Cole kjcole@gri.gallaudet.edu
Thu, 24 May 2001 15:04:40 -0400 (EDT)


Hi,

Can anyone tell me what I've got messed up NOW?

I've just installed the "latest" PostgreSQL RPM's (7.1.1) on two
different machines, and rebuilt their databases.  I have slightly
different versions of Python on each machine. Now I FINALLY have
pgdb.py... except it still doesn't work.  Both had different problems
with DateTime.py.  (Package versions listed below the error output
below.)
_____________________________________________________________________________

On MACHINE ONE I get:

>>> import pgdb
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/pgdb.py", line 65, in ?
    except ImportError: import DateTime
  File "/usr/lib/python1.5/site-packages/DateTime/__init__.py", line 85, in ?
    from DateTime import DateTime
  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
_____________________________________________________________________________

On MACHINE TWO I get:

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

The installed packages are:

   MACHINE ONE:                 MACHINE TWO:
---------------------        ---------------------
python-1.5.2-27              python-1.5.2-30
pythonlib-1.27-1             pythonlib-1.28-1
python-devel-1.5.2-27        python-devel-1.5.2-30
python-docs-1.5.2-27         python-tools-1.5.2-30
python-xmlrpc-1.4-1          python-xmlrpc-1.4-1
python2-2.1-4
python2-devel-2.1-4
python2-tkinter-2.1-4
python2-tools-2.1-4

  BOTH MACHINES HAVE:
------------------------
postgresql-odbc-7.1-1
postgresql-jdbc-7.1-1
postgresql-server-7.1-1
postgresql-docs-7.1-1
postgresql-contrib-7.1-1
postgresql-python-7.1-1
postgresql-tk-7.1-1
postgresql-perl-7.1-1
postgresql-test-7.1-1
postgresql-7.1-1
postgresql-libs-7.1-1
postgresql-tcl-7.1-1
postgresql-devel-7.1-1
_____________________________________________________________________________

Thanks for any assistance!