Has anyone had problems with dynamically loading PyExc_IOError when embedding a cython module?<br>While calling init below:<br><br><b>in main.c:<br></b>void init {<br> Py_Initialize();<br> initmymodule();<br> do_somethind();<br>
Py_Finalize();<br>}<br><br><b>in module.c:</b><br>cdef public void do_something():<br> import exceptions <br>
print exceptions.IOError # this prints <type 'exceptions.IOError'>, so I don't know what to make of the error below<br> import numpy # exception is thrown here, and numpy library is in pythonpath<br>
<br>Exception:<br>Exception exceptions.ImportError:
'/usr/lib/python2.5/lib-dynload/time.so: undefined symbol:
PyExc_IOError' in 'mymodule.myfunction' ignored<br><br>I'm not yet sure which library in numpy causes the exception but this example is easy to reproduce.<br><br>Thanks.<br>Igor<br>