[NumPy-Tickets] [NumPy] #1369: do not veil proper exception with bogus one in load_library

NumPy Trac numpy-tickets@scipy....
Thu Jan 21 16:25:08 CST 2010


#1369: do not veil proper exception with bogus one in load_library
-------------------------+--------------------------------------------------
 Reporter:  yarikoptic   |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  Other        |     Version:          
 Keywords:               |  
-------------------------+--------------------------------------------------
 I've got an exception thrown at me on a Linux system:

 OSError: /home/yhalchen/proj/pymvpa/pymvpa/build/install/lib/python2.6
 /site-packages/mvpa/clfs/libsmlrc/smlrc.pyd: cannot open shared object
 file: No such file or directory

 I was surprised to see that it looks for dynamic windows library...

 looking at code:
 {{{
         for ln in libname_ext:
             try:
                 libpath = os.path.join(libdir, ln)
                 return ctypes.cdll[libpath]
             except OSError, e:
                 pass
 }}}
 shows the issue... actual sensible exception was

 {{{
 OSError: /home/yhalchen/proj/pymvpa/pymvpa/build/install/lib/python2.6
 /site-packages/mvpa/clfs/libsmlrc/smlrc.so: undefined symbol:
 Py_InitModule4_64
 }}}

 so it might be sensible to make it more platform specific and/or check for
 present files

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1369>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list