[PyQt] Building PyQt4 on Mac 10.6.3 -- python configure.py fails

Robin M Baur rmb62 at cornell.edu
Thu Jun 24 14:18:51 BST 2010


Hi Jeba,

Glad you got your install working. Actually, although we got similar
errors, I'm not sure we had the same problem. See below...

On Thu, Jun 24, 2010 at 08:49, Jebagnana Das <jebagnanadas at gmail.com> wrote:
> Hi Robin,
>
>      I was the poster of the thread you mentioned.. Though i could not
> "install" PyQt 4 on my Mac OS X 10.6.4 (phew.. i was really tired of trying
> all possible ways)i found a workaround.. I copied the PyQt4 folder from
> another Mac machine which is running on OS X 10.5.6 and pasted into my
> site-packages folder with all the QtGui.so,QtCore.so and other files..

[snip]

> Regards,
> Jeba
>
>> Message: 1
>> Date: Thu, 10 Jun 2010 14:22:20 -0400
>> From: Robin M Baur <rmb62 at cornell.edu>
>> To: pyqt at riverbankcomputing.com
>> Subject: [PyQt] Building PyQt4 on Mac 10.6.3 -- python configure.py
>>        fails
>>
>> Hello list,
>>
>> I'm having difficulty building PyQt4 on my system...

[snip install details]

>> Arcane:PyQt-mac-gpl-4.7.3 rmbaur$ python configure.py --verbose

[snip most of output]

>> Generating the C++ source for the QtCore module...
>> "/System/Library/Frameworks/Python.framework/Versions/2.6/bin/sip" -k
>> -o -P -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_6_2 -x
>> Py_v3 -g -a QtCore.api -c QtCore -b QtCore/QtCore.sbf -I
>> /Users/rmbaur/Python setup/PyQt-mac-gpl-4.7.3/sip /Users/rmbaur/Python
>> setup/PyQt-mac-gpl-4.7.3/sip/QtCore/QtCoremod.sip

Here's the offending line from the output of python configure.py. It
turns out that some idiot (cough) made a directory with a space in the
name, which wasn't escaped in the call to sip. Renaming the directory
from /Python setup/ to /Python-setup/ allowed sip to find the files
and PyQt installed with no further problems.

-- Robin


More information about the PyQt mailing list