[PyQt] pyuic4 problem

David Quinn daithiquinn at gmail.com
Fri Aug 6 15:37:31 BST 2010


> 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.
>

Sorry for the deluge of list traffic - yes it turned out to be a
syntax error. Thanks for all the advice.

On Fri, Aug 6, 2010 at 10:25 AM, William Kyngesburye
<woklist at kyngchaos.com> wrote:
> 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.
>
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
>
> 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>
> http://www.kyngchaos.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