Python/C API: using from a shared library

Robie Basak robie at justgohome.co.uk
Wed Nov 26 06:29:38 EST 2008


On 2008-11-25, Robie Basak <robie at justgohome.co.uk> wrote:
> If I use dlopen() to open a shared library that I've written, and that
> shared library tries to use the Python/C API, then it fails. I've
> reduced the problem to the test case below. The error is:
>
> ImportError: /usr/lib/python2.5/lib-dynload/time.so: undefined symbol:
> PyExc_ValueError

I've submitted a bug for this. See http://bugs.python.org/issue4434 for
an more detailed explanation and a workaround.



More information about the Python-list mailing list