[PyQt] pyuic4 problem

William Kyngesburye woklist at kyngchaos.com
Fri Aug 6 15:25:42 BST 2010

On Aug 6, 2010, at 8:55 AM, David Quinn wrote:

> I don't understand what this means. Should I just delete all my python
> files from the frameworks folder, and reinstall everything (a new
> python install, etc)?
Delete/Reinstall /System/Frameworks/Python.framework - definitely not (last resort), that would mean reinstalling the whole system, and I doubt pyqt corrupted the system python.  Clearing out those sip/pyqt files in there as I mentioned, yes.  In fact, a clean system python doesn't have a "site-packages" folder (that's what /Library/Python is for) so you can delete that folder.


Certainly trashing sip/pyqt files in /library/Python and rebuilding might help.

Other than that, I don't know anything about pyqt to say if there's anything wrong in your ui code, but it sounds like there may just be a syntax problem there.

> On Thu, Aug 5, 2010 at 10:45 PM, William Kyngesburye
> <woklist at kyngchaos.com> wrote:
>> On Aug 5, 2010, at 9:18 PM, David Quinn wrote:
>>> Thanks for the advice, William.
>>> I followed the instructions for installation (though I could not find
>>> all the files to delete).
>> It's possible some files may be in /usr/bin and /usr/include.  (which files did you not find?)
>>> I now received the following error message:
>>> david$ pyuic4
>>> Traceback (most recent call last):
>>>  File "/Library/Python/2.6/site-packages/PyQt4/uic/pyuic.py", line 4,
>>> in <module>
>>>    from PyQt4 import QtCore
>>> ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtCore.so,
>>> 2): Symbol not found: _sipQtConnect
>>>  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtCore.so
>>>  Expected in: flat namespace
>>> in /Library/Python/2.6/site-packages/PyQt4/QtCore.so
>> Just to make sure - rebuild *both* sip and pyqt, with clean source would help.  And Qt Cocoa is a must (not the Carbon version) for 64bit.  If your using Carbon, don't add --arch=x86_64 for SIP, and use the --use-arch=i386 option for PyQt.

William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

"We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war

More information about the PyQt mailing list