Python/C API: using from a shared library

Robie Basak robie at
Wed Nov 26 12:29:38 CET 2008

On 2008-11-25, Robie Basak <robie at> 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/ undefined symbol:
> PyExc_ValueError

I've submitted a bug for this. See for
an more detailed explanation and a workaround.

More information about the Python-list mailing list