<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Oh nice to see you managed to hunt down this bug! Will test this in a few days!<br><br>Thanks!<br>Daniel<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><b>De: </b>"Brian Kelley" <kelley@eyesopen.com><br><b>À: </b>"Kah Fai Chong" <kfchong@altera.com>, "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com><br><b>Envoyé: </b>Jeudi 26 Avril 2012 20:08:17<br><b>Objet: </b>Re: [PyQt] [SOLVED] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature ( QT 4.8.1 + PyQt 4.9.1 )<br><br>
<div>Phil is putting out a new snapshot, but here are the details:</div><div><br></div><div>this bug is encountered when Qt is build with no open ssl, if you don't want to wait for the snapshot or next release, you can do the following.</div><div><br></div><div>Edit PyQt-*-4.9.1/sip/QtNetwork/qssl.sip</div><div><br></div><div>You need to edit the bottom of the file so that the Qflags portion are  inside the  </div><div> %If (Qt_4_3_0 -)</div><div> %If (PyQt_OpenSSL) </div><div>statements at the top of the file</div><div><br></div><div>The lines at the end should look like the following</div><div>==================</div><div><div>};</div><div><br></div><div>%If (Qt_4_8_0 -)</div><div>QFlags<QSsl::SslOption> operator|(QSsl::SslOption f1, QFlags<QSsl::SslOption> f2);</div><div>%End</div><div>%If (Qt_4_8_0 -)</div><div>QFlags<QSsl::SslOption> operator|(QSsl::SslOption f1, QSsl::SslOption f2);</div><div>%End</div><div><br></div><div>%End</div><div>%End</div></div><div><div>==================</div><div></div></div><div><br></div><div>Then build as normal.</div><div><br></div><div>Good luck.</div><div><br></div><div>Brian</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Kah Fai Chong <<a href="mailto:kfchong@altera.com" target="_blank">kfchong@altera.com</a>><br><span style="font-weight:bold">Date: </span> Wed, 25 Apr 2012 20:12:34 -0700<br><span style="font-weight:bold">To: </span> "<a href="mailto:%27pyqt@riverbankcomputing.com" target="_blank">'pyqt@riverbankcomputing.com</a>'" <<a href="mailto:pyqt@riverbankcomputing.com" target="_blank">pyqt@riverbankcomputing.com</a>><br><span style="font-weight:bold">Subject: </span> [PyQt] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature ( QT 4.8.1 + PyQt 4.9.1 )<br></div><div><br></div><div><style><!--

@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}

@list l0
        {mso-list-id:453717229;
        mso-list-type:hybrid;
        mso-list-template-ids:-927957622 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><div lang="EN-US"><div class="WordSection1"><p class="MsoNormal">Hi PyQt Developer,</p><p class="MsoNormal"> </p><p class="MsoNormal">I am QT commercial customer 01-003031. I face problem when I installing windows pyqt 4.9.1.</p><p class="MsoNormal"> </p><p class="MsoNormal"><u>Setup Environment</u></p><p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span>Windows 7 64bits</p><p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span>MSVC 2008</p><p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span>QT 4.8.1</p><p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">      
</span></span>SIP 4.13.2</p><p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span style="mso-list:Ignore">5.<span style="font:7.0pt "Times New Roman"">      
</span></span>Python 2.7.1</p><p class="MsoNormal"> </p><p class="MsoNormal"><u>Environment Variable</u></p><p class="MsoNormal"><span style="color:#00B050">QT_HOME</span>=s:\tools\qt\4.8.1\windows64</p><p class="MsoNormal"><span style="color:#00B050">PATH</span>=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</p><p class="MsoNormal"><span style="color:#00B050">LD_LIBRARY_PATH</span>=s:\tools\share\python\2.7.1\windows64\Lib</p><p class="MsoNormal"><span style="color:#00B050">LIB</span>=C:\devstudio2008\VC\ATLMFC\LIB\amd64;C:\devstudio2008\VC\LIB\amd64;;"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64"</p><p class="MsoNormal"><span style="color:#00B050">LIBPATH</span>=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;</p><p class="MsoNormal"><span style="color:#00B050">INCLUDE</span>=C:\devstudio2008\VC\ATLMFC\INCLUDE;C:\devstudio2008\VC\INCLUDE;;"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include"</p><p class="MsoNormal"><span style="color:#00B050">PYTHONHOME</span>=S:\tools\share\python\2.7.1\windows64</p><p class="MsoNormal"><span style="color:#00B050">PYTHONPATH</span>=S:\tools\share\python\2.7.1\windows64\lib\python2.7\site-packages\ChartDirector\lib</p><p class="MsoNormal"><span style="color:#00B050">PYTHON_ROOT</span>=S:\tools\share\python\2.7.1\windows64</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"><u>Error Message</u></p><p class="MsoNormal">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.</p><p class="MsoNormal">“<span style="color:red">sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature Error: Unable to create the C++ code.</span></p><p class="MsoNormal">” </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">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.
</p><p class="MsoNormal">FYI. The environment I configure for PyQt on both are same except the QT version.
</p><p class="MsoNormal"> </p><p class="MsoNormal">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?</p><p class="MsoNormal"> </p><p class="MsoNormal"><u>NOT ABLE TO INSTALL</u></p><p class="MsoNormal">QtDeclarative</p><p class="MsoNormal">QtWebKit</p><p class="MsoNormal">QtNetwork</p><p class="MsoNormal">QtXmlPatterns</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks</p><p class="MsoNormal">Kah Fai</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"><u>Details Error Message </u></p><p class="MsoNormal">Qt v4.8.1 Desktop edition is being used.</p><p class="MsoNormal">Qt is licensed to Denis Goh.</p><p class="MsoNormal">SIP 4.13.2 is being used.</p><p class="MsoNormal">The Qt header files are in S:\tools\qt\4.8.1\windows64\include.</p><p class="MsoNormal">The shared Qt libraries are in S:\tools\qt\4.8.1\windows64\lib.</p><p class="MsoNormal">The Qt binaries are in S:\tools\qt\4.8.1\windows64\bin.</p><p class="MsoNormal">The Qt mkspecs directory is in S:\tools\qt\4.8.1\windows64.</p><p class="MsoNormal">These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,</p><p class="MsoNormal">QtNetwork, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg,</p><p class="MsoNormal">QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtDesigner, QAxContainer.</p><p class="MsoNormal">The PyQt Python package will be installed in</p><p class="MsoNormal">s:\tools\pyqt\4.9.1\windows64\lib\python2.7\site-packages.</p><p class="MsoNormal">PyQt is being built with generated docstrings.</p><p class="MsoNormal">The Designer plugin will be installed in</p><p class="MsoNormal">S:\tools\qt\4.8.1\windows64\plugins\designer.</p><p class="MsoNormal">The PyQt .sip files will be installed in</p><p class="MsoNormal">s:\tools\pyqt\4.9.1\windows64\share\sip.</p><p class="MsoNormal">pyuic4, pyrcc4 and pylupdate4 will be installed in</p><p class="MsoNormal">s:\tools\pyqt\4.9.1\windows64\bin.</p><p class="MsoNormal">Generating the C++ source for the QtCore module...</p><p class="MsoNormal">"S:\tools\share\python\2.7.1\windows64\sip" -w -o -x VendorID -t WS_WIN -x PyQt_</p><p class="MsoNormal">OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_1 -x Py_v3 -g -a QtCore.api -c S:\tool</p><p class="MsoNormal">s\pyqt\4.9.1\PyQt-win-commercial-4.9.1\QtCore -b QtCore\QtCore.sbf -I S:\tools\p</p><p class="MsoNormal">yqt\4.9.1\PyQt-win-commercial-4.9.1\sip S:\tools\pyqt\4.9.1\PyQt-win-commercial-</p><p class="MsoNormal">4.9.1/sip/QtCore/QtCoremod.sip</p><p class="MsoNormal">Creating the Makefile for the QtCore module...</p><p class="MsoNormal">Generating the C++ source for the QtDeclarative module...</p><p class="MsoNormal">"S:\tools\share\python\2.7.1\windows64\sip" -w -o -x VendorID -t WS_WIN -x PyQt_</p><p class="MsoNormal">OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_1 -x Py_v3 -g -a QtDeclarative.api -c</p><p class="MsoNormal">S:\tools\pyqt\4.9.1\PyQt-win-commercial-4.9.1\QtDeclarative -b QtDeclarative\QtD</p><p class="MsoNormal">eclarative.sbf -I S:\tools\pyqt\4.9.1\PyQt-win-commercial-4.9.1\sip S:\tools\pyq</p><p class="MsoNormal">t\4.9.1\PyQt-win-commercial-4.9.1/sip/QtDeclarative/QtDeclarativemod.sip</p><p class="MsoNormal"><span style="color:red">sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature Error: Unable to create the C++ code.</span></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></div><br><hr><font size="2" color="Black" face="Arial">Confidentiality Notice.<br>
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.<br></font></div></div></span>
<br>_______________________________________________<br>PyQt mailing list    PyQt@riverbankcomputing.com<br>http://www.riverbankcomputing.com/mailman/listinfo/pyqt</blockquote><br></div></body></html>