[PyQt] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature ( QT 4.8.1 + PyQt 4.9.1 )
Kah Fai Chong
kfchong at altera.com
Thu Apr 26 04:12:34 BST 2012
Hi PyQt Developer,
I am QT commercial customer 01-003031. I face problem when I installing windows pyqt 4.9.1.
Setup Environment
1. Windows 7 64bits
2. MSVC 2008
3. QT 4.8.1
4. SIP 4.13.2
5. Python 2.7.1
Environment Variable
QT_HOME=s:\tools\qt\4.8.1\windows64
PATH=s:\tools\qt\4.8.1\windows64\bin;s:\tools\qt\4.8.1\windows64\bin;"c:\ProgramFiles\MicrosoftSDKs\Windows\v6.0A\Bin\x64";S:\tools\share\python\2.7.1\windows64\bin;C:\devstudio2008\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v3.5;C:\WINDOWS\Microsoft.NET\Framework64\v3.5\Microsoft .NET Framework 3.5 (Pre-ReleaseVersion);C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;C:\devstudio2008\VC\VCPackages;C:\devstudio2008\Common7\IDE;C:\devstudio2008\Common7\Tools;C:\devstudio2008\Common7\Tools\bin;s:\tools\arc\bin;s:\tools\perl\current\windows32\bin;s:\tools\bin\windows32;c:\mks\bin;c:\mks\bin64;c:\mks\bin\X11;c:\mks\mksnt;C:\WINDOWS\SysWOW64;c:\windows\system32;c:\windows;c:\windows\system32\wbem;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\bin
LD_LIBRARY_PATH=s:\tools\share\python\2.7.1\windows64\Lib
LIB=C:\devstudio2008\VC\ATLMFC\LIB\amd64;C:\devstudio2008\VC\LIB\amd64;;"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64"
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework64\v3.5;C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;C:\WINDOWS\Microsoft.NET\Framework64\v3.5;C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;C:\devstudio2008\VC\ATLMFC\LIB\amd64;C:\devstudio2008\VC\LIB\amd64;
INCLUDE=C:\devstudio2008\VC\ATLMFC\INCLUDE;C:\devstudio2008\VC\INCLUDE;;"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include"
PYTHONHOME=S:\tools\share\python\2.7.1\windows64
PYTHONPATH=S:\tools\share\python\2.7.1\windows64\lib\python2.7\site-packages\ChartDirector\lib
PYTHON_ROOT=S:\tools\share\python\2.7.1\windows64
Error Message
When I running configure PyQt, the combination of Pyqt 4.9.1, SIP 4.13.2, QT 4.8.1 will bring out problem below.
"sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature Error: Unable to create the C++ code.
"
However, the combination of Pyqt 4.9.1, SIP 4.13.2, QT 4.7.0 is working fine. Is it PyQt 4.9.1 not compatible with QT 4.8.1? or I missing out something here? Please help.
FYI. The environment I configure for PyQt on both are same except the QT version.
Today, I tried to exclude out problematic QT module when I install Pyqt 4.9.1, SIP 4.13.2, QT 4.8.1 that are (QtDeclarative, QtWebKit, QtNetwork, QtXmlPatterns), it is working fine now. But I guess these 4 QT module are important to us as well. Could you tell me what's wrong when I install Pyqt 4.9.1 with SIP 4.13.2, QT 4.8.1, Python 2.7.1?
NOT ABLE TO INSTALL
QtDeclarative
QtWebKit
QtNetwork
QtXmlPatterns
Thanks
Kah Fai
Details Error Message
Qt v4.8.1 Desktop edition is being used.
Qt is licensed to Denis Goh.
SIP 4.13.2 is being used.
The Qt header files are in S:\tools\qt\4.8.1\windows64\include.
The shared Qt libraries are in S:\tools\qt\4.8.1\windows64\lib.
The Qt binaries are in S:\tools\qt\4.8.1\windows64\bin.
The Qt mkspecs directory is in S:\tools\qt\4.8.1\windows64.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg,
QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtDesigner, QAxContainer.
The PyQt Python package will be installed in
s:\tools\pyqt\4.9.1\windows64\lib\python2.7\site-packages.
PyQt is being built with generated docstrings.
The Designer plugin will be installed in
S:\tools\qt\4.8.1\windows64\plugins\designer.
The PyQt .sip files will be installed in
s:\tools\pyqt\4.9.1\windows64\share\sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in
s:\tools\pyqt\4.9.1\windows64\bin.
Generating the C++ source for the QtCore module...
"S:\tools\share\python\2.7.1\windows64\sip" -w -o -x VendorID -t WS_WIN -x PyQt_
OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_1 -x Py_v3 -g -a QtCore.api -c S:\tool
s\pyqt\4.9.1\PyQt-win-commercial-4.9.1\QtCore -b QtCore\QtCore.sbf -I S:\tools\p
yqt\4.9.1\PyQt-win-commercial-4.9.1\sip S:\tools\pyqt\4.9.1\PyQt-win-commercial-
4.9.1/sip/QtCore/QtCoremod.sip
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
"S:\tools\share\python\2.7.1\windows64\sip" -w -o -x VendorID -t WS_WIN -x PyQt_
OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_1 -x Py_v3 -g -a QtDeclarative.api -c
S:\tools\pyqt\4.9.1\PyQt-win-commercial-4.9.1\QtDeclarative -b QtDeclarative\QtD
eclarative.sbf -I S:\tools\pyqt\4.9.1\PyQt-win-commercial-4.9.1\sip S:\tools\pyq
t\4.9.1\PyQt-win-commercial-4.9.1/sip/QtDeclarative/QtDeclarativemod.sip
sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature Error: Unable to create the C++ code.
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120426/5ff1e567/attachment-0001.html>
More information about the PyQt
mailing list