[DB-SIG] Solid and mxODBC?

M.-A. Lemburg mal@lemburg.com
Tue, 25 May 1999 19:11:57 +0200


Petr Snajdr wrote:
> 
> /usr/local/bin/python1.5 /root/ODBC/test.py
> Traceback (innermost last):
>   File "/root/ODBC/test.py", line 23, in ?
>     import DateTime,mxODBC
> ImportError: No module named DateTime
> 
> $ emacs /root/ODBC/test.py (replace string DateTime -> mxDateTime)
> 
> /usr/local/bin/python1.5 /root/ODBC/test.py
> ========================================================================
> mxODBC Test Suite
> ------------------------------------------------------------------------
> 
> Subpackage Name [MySQL]: Solid
> 
> Import of ODBC.'Solid' failed: No module named ODBC.Solid
> 
> DateTime == mxDateTime?

You must have installed the package mxDateTime before installing
mxODBC. Note that the package's Python name is DateTime.

If you have already unzipped the two, make sure that the
directory where you unzipped them is on the PYTHONPATH (and
make sure the two package dirs are not.

BTW: The test.py script you're using seems to be pretty old
or modified; my version says:

import DateTime,ODBC

on line 23.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                   220 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/