mxODBC cannot import... new install

Gillou nospam at bigfoot.com
Thu Jan 30 19:27:52 CET 2003


"Tony Colston" <agcolston at buckman.com> a écrit dans le message de news:
c017c9ec.0301300938.6f7b76dc at posting.google.com...
> I just installed mxODBC and cannot get the damn thing even to import!
> Does anyone have any advice on how to get this to work?
>
> I am trying this and here are the results.
>
> PythonWin 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on
> win32.
> Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au)
> - see 'Help/About PythonWin' for further copyright information.
> >>> import mx.ODBC.Windows
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> ImportError: No module named mx.ODBC.Windows
> >>>
>
> I do not have PYTHONPATH set to anything. This is just a standard
> Windows 2000 installation. I have not done any modifications to
> anything as far as I know. I installed python with the installer like
> always. I installed mxODBC with the installer for 2.2, it found the
> correct Python directory and installed.
>
> Has anyone else got this package to work on Windows?
>
> Thanks ahead of time.

It works perfectly for me (win2K + Python 2.1.3)
c:\Python21\mx\ODBC\Windows

Remember that mxODBC *requires* mxBase package. Perhaps you forgot it ?

then try

>>> import sys
>>> sys.path
['...']

Does the directory that contains mx appear here ?

--Gilles







More information about the Python-list mailing list