Hello I have this problem with PyQt4-dev-tools that include:
* a user interface compiler (pyuic4)
* a resource file generator (pyrcc4)
* a translation string finder (pylupdate)
The problem comes when I want to convert my code saved from Designer into a module using:
pyuic4 untitled.ui>test.py
and I get this error:
Traceback (most recent call last):
File "/usr/bin/pyuic4", line 3, in <module>
import PyQt4.uic.pyuic
File "/usr/lib/pymodules/python2.6/PyQt4/uic/pyuic.py", line 4, in <module>
from PyQt4 import QtCore
RuntimeError: the sip module implements API v8.0 to v8.1 but the PyQt4.QtCore module requires API v7.1
I have tried upgrade,remove and re install, manually install etc…
here is the complete log of what i did: http://pastebin.com/2DYfAwdC
PD Sorry for my bad English
Your sip python module must have been reinstalled to a newer version which is now incompatible with your PyQt installation. I would recommend removing sip, PyQt, and Qt, and then reinstalling them.
Check that your apt is up to date, and also confirm that you don’t have an old PyQt installation sitting somewhere in your pythonpath.
If you are able to successfully import PyQt by itself then try comparing the import paths to make sure you aren’t pulling another version of PyQt:
Compare the versions and the PyQt4 location to the one being dumped out from your traceback when using pyuic4
If its a matter of sip being found in a different location, try adjusting your PYTHONPATH to confirm:
If this works without crashing, then you should probably remove the newer sip that is causing a conflict from here: “/usr/lib/python2.6/dist-packages/sip.so”