[PyKDE] Re: libsip & Py_Free?

Hollis R Blanchard hollis+ at andrew.cmu.edu
Thu May 10 20:34:26 BST 2001

On Thu, 10 May 2001, Hollis R Blanchard wrote:

> As I've discovered, PyQt doesn't play well with python1. So I tried building
> against python2, only to get the following error:
> (cd /tmp; PYTHONPATH=/var/tmp/PyQt-2.4-root/usr/lib/python2.1/site-packages:/var
> /tmp/PyQt-2.4-root/usr/lib/python2.1/site-packages python -O -c "import qt")
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/var/tmp/PyQt-2.4-root/usr/lib/python2.1/site-packages/qt.py", line 43, 
> in ?
>     import libqtc
> ImportError: /usr/lib/libsip.so.5: undefined symbol: Py_Free

My mistake was not understanding the connection between sip and python. The
sip I was using was built with python1 (which apparently defines Py_Free) but
I was trying to use it with python2. Rebuilt and that particular problem was


More information about the PyQt mailing list