Re: Python/C API: using from a shared library

2008-11-26 Thread Robie Basak
On 2008-11-25, Robie Basak <[EMAIL PROTECTED]> 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: > > Impo

Python/C API: using from a shared library

2008-11-25 Thread Robie Basak
Hi, 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 It appear