2.0b2 and mxODBC

Gilles Lenfant glenfant at nospam-e-pack.net
Mon Oct 2 10:38:22 EDT 2000


It's the same with Python 1.6 (Windows NT)
The mxodbc.zip for windows comes with a compiled extension for python 1.5.2
that must be compiled again against python 1.6 (or 2.0b2).
Anyway, with Python 1.5.2, I needed only to "import odbc.Windows". With
Python 1.6, I need "import mxDateTime, odbc.Windows".
Don't ask why, I haven't got the answer.
I already got other binary extensions, so I'll wait they're available for
Python 2.0 before using it.

"Matthias Huening" <matthias.huening at univie.ac.at> a écrit dans le message
news: 8r9vun$1bsq$1 at www.univie.ac.at...
> Hi,
>
> I use mxODBC under Win98 with Python 1.5.2 without problems.
> On a new computer (again with Win98) I installed Python 2.0b2, mxDateTime
> and mxODBC, but I get an import-problem.
>
> ---------
> Python 2.0b2 (#6, Sep 26 2000, 14:59:21) [MSC 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license" for more information.
> IDLE 0.6 -- press F1 for help
> >>> import ODBC.Windows
> Traceback (innermost last):
>   File "<pyshell#0>", line 1, in ?
>     import ODBC.Windows
>   File "C:\PYTHON20\lib\ODBC\__init__.py", line 21, in ?
>     import DateTime # mxDateTime package must be installed first !
>   File "C:\PYTHON20\lib\DateTime\__init__.py", line 20, in ?
>     from DateTime import *
>   File "C:\PYTHON20\lib\DateTime\DateTime.py", line 8, in ?
>     from mxDateTime import *
>   File "C:\PYTHON20\lib\DateTime\mxDateTime\__init__.py", line 7, in ?
>     from mxDateTime import *
> ImportError: DLL load failed
> ---------
>
> Is this a known problem?
> Any suggestions / solutions?
>
> Matthias
>
>





More information about the Python-list mailing list