[mod_python] query regarding pyodbc

rahul rahul.warhekar at edisphere.com
Fri Jan 16 05:18:42 EST 2009


I have run it from python console and it is giving same error.

Now, I used nm command for pyodbc.so file and got the following output.

[root at dbserver site-packages]# nm pyodbc.so
00001600 A __bss_start
000003ec t call_gmon_start
00001600 b completed.1
000014fc d __CTOR_END__
000014f8 d __CTOR_LIST__
         w __cxa_finalize@@GLIBC_2.1.3
000004a8 t __do_global_ctors_aux
00000410 t __do_global_dtors_aux
000015f8 d __dso_handle
00001504 d __DTOR_END__
00001500 d __DTOR_LIST__
0000150c A _DYNAMIC
00001600 A _edata
00001604 A _end
000004d8 T _fini
0000046c t frame_dummy
000004f4 r __FRAME_END__
000015e8 A _GLOBAL_OFFSET_TABLE_
         w __gmon_start__
000003b4 T _init
00001508 d __JCR_END__
00001508 d __JCR_LIST__
         w _Jv_RegisterClasses
000015fc d p.0


Still I am not understanding what is the problem, please help.

Thanks,
Rahul

-----Original Message-----
From: Graham Dumpleton [mailto:graham.dumpleton at gmail.com] 
Sent: Friday, January 16, 2009 2:55 PM
To: rahul
Cc: mod_python at modpython.org
Subject: Re: [mod_python] query regarding pyodbc

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