[mod_python] query regarding pyodbc

Graham Dumpleton graham.dumpleton at gmail.com
Fri Jan 16 04:25:14 EST 2009


2009/1/16 rahul <rahul.warhekar at edisphere.com>:
> Hello all,
>
>
>
> I am using RedHat Enterprise 4 linux on which I have python 2.5.4 and
> mod_python 3.3.1 .
>
> Now when I install pyodbc package and I try to import it it is giving me an
> error as
>
> ImportError : dynamic module does not define init function (initpyodbc)
>
>
>
> My pyodbc version is 2.1.14
>
> Any help regarding this will be greatly appreciated.

Does it work when you try and import it from command line Python?

Have you run 'nm' command on the .so file for the Python C extension
module to see whether that function (initpyodbc) exists in the file?

Graham


More information about the Mod_python mailing list