[DB-SIG] Re: DCOracle2 Installation Issues on Linux Redhat 7.4

Oliver Vecernik vecernik@aon.at
Tue, 11 Feb 2003 08:15:30 +0100


Kirby Lester schrieb:
> Hello All,
>   Please be patient with me, as I am new to python and especially new to 
> DCOracle2.  I currently have a sympathetic sys admin helping me and he 
> has installed DCOracle to the python 2.1 directory.  When I try to 
> import DCOracle using either a script or the interactive prompt, I get 
> the following error "ImportError: No module named DateTime". 

Check your system path:

Python 2.1.3 (#1, Sep  7 2002, 15:29:56)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.path
['', '/usr/lib/python2.1', '/usr/lib/python2.1/plat-linux2', 
'/usr/lib/python2.1/lib-tk', '/usr/lib/python2.1/lib-dynload', 
'/usr/local/lib/python2.1/site-packages', 
'/usr/lib/python2.1/site-packages', 
'/usr/lib/python2.1/site-packages/Bobo', 
'/usr/lib/python2.1/site-packages/HTMLgen', 
'/usr/lib/python2.1/site-packages/Numeric', 
'/usr/lib/python2.1/site-packages/PIL', 
'/usr/lib/python2.1/site-packages/gadfly', '/usr/lib/site-python']
 >>>

Either install your driver in a directory already there or add your 
installation path.

HTH
Oliver