Has anyone had problems with dynamically loading PyExc_IOError when
embedding a cython module?
While calling init below:

*in main.c:
*void init {
  Py_Initialize();
  initmymodule();
  do_somethind();
  Py_Finalize();
}

*in module.c:*
cdef public void do_something():
    import
exceptions

    print exceptions.IOError # this prints <type 'exceptions.IOError'>, so I
don't know what to make of the error below
    import numpy  # exception is thrown here, and numpy library is in
pythonpath

Exception:
Exception exceptions.ImportError: '/usr/lib/python2.5/lib-dynload/time.so:
undefined symbol: PyExc_IOError' in 'mymodule.myfunction' ignored

I'm not yet sure which library in numpy causes the exception but this
example is easy to reproduce.

Thanks.
Igor
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to