i have an query regarding pyodbc

Rahul r.warhekar at gmail.com
Fri Feb 6 07:27:02 CET 2009

hello all,

I have installed pyodbc on my red hat enterprise 4 linux machine but
when i go to use that using statement,

import pyodbc

through python console it gives me error as

ImportError : dynamic module does not define init function

and when i do 'nm pyodbc.so' command i get output as

[root at dbserver site-packages]# nm pyodbc.so 00001600 A __bss_start
000003ec t call_gmon_start 00001600 b completed.1 000014fc d
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__
         w __gmon_start__
000003b4 T _init
00001508 d __JCR_END__
00001508 d __JCR_LIST__
         w _Jv_RegisterClasses
000015fc d p.0

which means there is no init function.

So what might be the cause for that?

I have build that pyodbc twice.
Any help regarding this will be greatly appreciated.

Thanks & Regards

More information about the Python-list mailing list