[PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

Phil Thompson phil at riverbankcomputing.com
Tue Dec 27 09:54:24 GMT 2011


On Tue, 27 Dec 2011 10:32:36 +0100, Nico Dufort <ndufort at gmail.com> wrote:
> Hello,
> 
> I need to build PyQt4 for use with an existing software (The Foundry's
> Nuke6.3v4).  That software uses Python 2.6 which requires me to build a
> separate version of Python for my system (LinuxMint 12, w/ Python 2.7).
> 
> I have built python-2.6.7 fine.
> I have built sip-4.13.1 fine.
> I have built qt-everywhere-opensource-4.8.0 fine.
> I fail on configuring PyQt-4.9 before evening building it (using
> /opt/python-2.6.7/bin/python2.6
> ./configure.py -q /usr/local/Trolltech/Qt-4.8.0/bin/qmake -w):
> 
> Generating the C++ source for the QtDeclarative module...
> "/opt/python-2.6.7/bin/sip" -w -o -P -x VendorID -t WS_X11 -x
PyQt_OpenSSL
> -x PyQt_NoPrintRangeBug -t Qt_4_8_0 -x Py_v3 -g -a QtDeclarative.api -c
> /home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/QtDeclarative -b
> QtDeclarative/QtDeclarative.sbf -I
> /home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip
>
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip/QtDeclarative/QtDeclarativemod.sip
> sip: __or__() unsupported function return type - provide %MethodCode and
a
> C++ signature
> Error: Unable to create the C++ code.
> 
> Earlier this year, I managed to build PyQt4 on Ubuntu, but it was a
version
> for Python 2.5.  I do not recall having any problem at all when I did. 
I'm
> about to install VirtualBox to run a few test cases, but if anyone can
> point me towards what I may be doing wrong, that would be great.  Not
sure
> if that -x Py_v3 is a hint.  Or perhaps there is a mismatch elsewhere in
my
> packages?
> 
> Thanks. nico

Run...

/opt/python-2.6.7/bin/sip -V

...to make sure you are actually using the right version of sip.

Phil


More information about the PyQt mailing list