Based on this discussion <a href="http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19856.html">http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19856.html</a> with the help of my friend i found another thing that might be the cause for this problem.. <br>
<br>When i give $python on the terminal it invokes the default python 2.6 as we all know..<br>Here sys.maxsize gives the value as 9223372036854775807 <br><br>while giving $python3 on the terminal (invokes python 3 installation) gives the value as  2147483647.<br>
<br>So one thing that is clear is that the default installation uses 64-bit and python 3 uses 32-bit. <br><br>My question is even though i gave --arch i386 (which is clearly for 32-bit) in SIP and PyQT configure as mentioned in the trolltech&#39;s official doc <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopard">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopard</a> why it&#39;s not giving this error.. <br>
<br> The error also seems like some kind of syntax error in the usage of SIP. Do i need to modify PyQt installation scripts? <br><br>Need your help regarding this..<br><br>Thanks in advance.. <br><br>Regards,<br>Jeba.<br>
<br><div class="gmail_quote">On Mon, Apr 5, 2010 at 9:51 PM, Jebagnana Das <span dir="ltr">&lt;<a href="mailto:jebagnanadas@gmail.com">jebagnanadas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Thanks darren for your reply. But still i couldn&#39;t make it to work.<br><br>This is what i did. Installed the qt-mac-cocoa-opensource-4.6.0.dmgfrom the source you specified.. Installed SIP 4.10.1 using $python3 configure.py, $make and $make install. <br>

<br>Then after extracting PyQt-mac-gpl-4.7.tar.gz the $python3 configure.py produces the following error..<br><br></div><div class="im">Determining the layout of your Qt installation...<br></div><div class="im">This is the GPL version of PyQt 4.7 (licensed under the GNU General Public<br>

License) for Python 3.1 on darwin.<br><br>Type &#39;2&#39; to view the GPL v2 license.<br>Type &#39;3&#39; to view the GPL v3 license.<br>Type &#39;yes&#39; to accept the terms of the license.<br>Type &#39;no&#39; to decline the terms of the license.<br>

<br>Do you accept the terms of the license? yes<br>Checking to see if the QtGui module should be built...<br></div><div class="im">Checking to see if the QtHelp module should be built...<br></div><div class="im">Checking to see if the QtMultimedia module should be built...<br>
</div><div class="im">
Checking to see if the QtNetwork module should be built...<br></div><div class="im">Checking to see if the QtOpenGL module should be built...<br></div><div class="im">Checking to see if the QtScript module should be built...<br>
</div><div class="im">Checking to see if the QtScriptTools module should be built...<br></div><div class="im">
Checking to see if the QtSql module should be built...<br></div><div class="im">Checking to see if the QtSvg module should be built...<br></div><div class="im">Checking to see if the QtTest module should be built...<br></div>
<div class="im">Checking to see if the QtWebKit module should be built...<br></div><div class="im">
Checking to see if the QtXml module should be built...<br></div><div class="im">Checking to see if the QtXmlPatterns module should be built...<br></div><div class="im">Checking to see if the phonon module should be built...<br>
</div><div class="im">Checking to see if the QtAssistant module should be built...<br></div><div class="im">
Checking to see if the QtDesigner module should be built...<br></div>Qt v4.6.0 free edition is being used.<div class="im"><br>Qt is built as a framework.<br>SIP 4.10.1 is being used.<br>The Qt header files are in /usr/include.<br>
The shared Qt libraries are in /Library/Frameworks.<br>
The Qt binaries are in /Developer/Tools/Qt.<br>The Qt mkspecs directory is in /usr/local/Qt4.6.<br></div><div class="im">These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,<br>QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit,<br>

QtXml, QtXmlPatterns, QtAssistant, QtDesigner.<br></div><div class="im">The PyQt Python package will be installed in<br>/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages.<br>PyQt is being built with generated docstrings.<br>

PyQt is being built with &#39;protected&#39; redefined as &#39;public&#39;.<br>The Designer plugin will be installed in<br>/Developer/Applications/Qt/plugins/designer.<br>The PyQt .sip files will be installed in<br>/Library/Frameworks/Python.framework/Versions/3.1/share/sip/PyQt4.<br>

pyuic4, pyrcc4 and pylupdate4 will be installed in<br>/Library/Frameworks/Python.framework/Versions/3.1/bin.<br>Generating the C++ source for the QtCore module...<br>sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-z file] [file]<br>

Error: Unable to create the C++ code.<br><br></div><div class="im">Am i doing anything wrong here?? <br><br>Regards,<br>Jeba<br><br><br></div><div class="gmail_quote"><div class="im">On Mon, Apr 5, 2010 at 8:50 PM, Darren Dale <span dir="ltr">&lt;<a href="mailto:dsdale24@gmail.com" target="_blank">dsdale24@gmail.com</a>&gt;</span> wrote:<br>

</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Mon, Apr 5, 2010 at 11:09 AM, Jebagnana Das &lt;<a href="mailto:jebagnanadas@gmail.com" target="_blank">jebagnanadas@gmail.com</a>&gt; wrote:<br>


&gt; Hi all,<br>
&gt;<br>
&gt;      I found an archived discussion regarding the same problem. Click here<br>
&gt; to see the discussion. But the solution proposed here is bit confusing. I<br>
&gt; hope this issue must have been fixed by now(It was posted on Nov 2009).<br>
&gt; Anybody have the new solution of installing pyqt 0n mac os x 10.6.2??<br>
<br>
</div>Try here: <a href="http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19680.html" target="_blank">http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19680.html</a><br>
</blockquote></div></div></div><br>
</blockquote></div><br>