[PyKDE] Installation problems with Mandrake7.1

Phil Thompson phil at river-bank.demon.co.uk
Mon Jan 8 11:53:09 GMT 2001


Kevin McCormick wrote:
> 
> I am having trouble getting PyQt-2.2 installed.  Any help would be
> appreciated. My system is Mandrake 7.1, with Python 2.0, Qt-2.2.3,
> SIP-2.2, all built and then installed under /usr/local.  I have
> gcc-2.95.3 and egcs-2.91.66.  I also have python-1.5.2, qt-1.4.4, and
> qt-2.1, which were installed/updated with the Mandrake rpm's under
> /usr/lib.  I have done some upgrading/supplementing, since my Mandrake
> 7.1 "Complete" distribution was lacking some apparently necessary
> libraries.  I am trying to put together a python development
> environment, but I am finding that the sip/disutils type packages don't
> seem to install, since I am having similar troubles with wxPython.
> However, tcl/tk, Pmw, and blt2.4 have installed with no problems.
> Anyway, I get the error message:
> 
> make[3]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
> (cd /tmp;
> PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
> pyt
> hon -c "import qt")
> Traceback (innermost last):
>   File "<string>", line 1, in ?
>   File "/usr/local/lib/python2.0/site-packages/qt.py", line 43, in ?
>     import libqtc
> ImportError: /usr/local/lib/libsip.so.3: undefined symbol: PyObject_Init
> make[3]: *** [install-data-hook] Error 1
> make[3]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
> make[2]: *** [install-data-am] Error 2
> 
> I have searched my system for "libqtc" and cannot find it. I do have
> libqtcmodule-2.2.so in /usr/local/lib/python2.0/site-packages/ however.

libqtc is the Python name for libqtcmodule.so (and therefore whatever
the latter is linked to).

When you have multiple versions of Qt (or Python) installed, you *must*
make sure SIP and PyQt are finding the right versions. If you run
configure again with different flags to pick up a different version of
Qt, make sure you remove config.cache first.

Phil




More information about the PyQt mailing list