[PyQt] Fwd: Compiling PyQt5 on a Raspberry Pi

John Donovan mersey.viking at gmail.com
Mon Aug 5 17:15:07 BST 2013


I am trying to compile the latest PyQt5 on my Raspberry Pi running
Raspbian Wheezy, and I am coming across this error when I run:
$ python3 configure.py --verbose

<snip some stuff>

Generating the C++ source for the QtGui module...
/usr/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -x PyQt_NoOpenGLES
-x PyQt_qreal_double -o -P -a QtGui.api -c
/home/pi/PyQt-gpl-5.0.1-snapshot-78c6a5e85fef/QtGui -I sip -I
/home/pi/PyQt-gpl-5.0.1-snapshot-78c6a5e85fef/sip
/home/pi/PyQt-gpl-5.0.1-snapshot-78c6a5e85fef/sip/QtGui/QtGuimod.sip
sip: /home/pi/PyQt-gpl-5.0.1-snapshot-78c6a5e85fef/sip/QtGui/qbrush.sip:157:
QGradient::setStops() unsupported function argument type - provide
%MethodCode and a C++ signature
Error: Unable to create the C++ code.


Running sip -V yields:
4.15-snapshot-ba59d434b206

So it seems to be choosing the right version of SIP. I'm no SIP
expert, so I'm not sure of the best way of solving the issue; am I
missing a dependency or is there a bug in the .sip file?

I also notice one of the flags is -x PyQt_NoOpenGLES but GLES is the
reason I'm using Qt5 on the Pi. Is this important, and how would I go
about changing it?

Regards,
John

-- 
One of the advantages of being disorderly is that one is constantly
making exciting discoveries. - AA Milne


More information about the PyQt mailing list