Python 2.6 and modules dbi AND odbc
kevin.p.dwyer at gmail.com
Thu Mar 11 19:54:41 CET 2010
On Wed, 10 Mar 2010 16:17:29 -0800, robert somerville wrote:
> i am trying to get some legacy python code (which i no nothing about)
> working with tries to import dbi and odbc (the import fails ...) it
> looks like these modules are deprecated ?? if so is there a work around
> , if not deprecated, what am i doing wrong ?? i see no Ubuntu packages
> that look promising ..
These modules are distributed as part of the PyWin32 Python for Windows
extensions, so they need to run on a Windows box. They'll run fine
there regardless of the deprecation of dbi (though "import dbi" will
provide a useful warning message).
Pyodbc is a possible alternative.
More information about the Python-list