[PyQt] Problem in installing PyQt on Mac OS X 10.6.2
Jebagnana Das
jebagnanadas at gmail.com
Tue Apr 6 13:37:06 BST 2010
Based on this discussion
http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19856.html with
the help of my friend i found another thing that might be the cause for this
problem..
When i give $python on the terminal it invokes the default python 2.6 as we
all know..
Here sys.maxsize gives the value as 9223372036854775807
while giving $python3 on the terminal (invokes python 3 installation) gives
the value as 2147483647.
So one thing that is clear is that the default installation uses 64-bit and
python 3 uses 32-bit.
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's official doc
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-sip-and-pyqt-for-macos-10-6-snow-leopardwhy
it's not giving this error..
The error also seems like some kind of syntax error in the usage of SIP. Do
i need to modify PyQt installation scripts?
Need your help regarding this..
Thanks in advance..
Regards,
Jeba.
On Mon, Apr 5, 2010 at 9:51 PM, Jebagnana Das <jebagnanadas at gmail.com>wrote:
> Thanks darren for your reply. But still i couldn't make it to work.
>
> 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.
>
> Then after extracting PyQt-mac-gpl-4.7.tar.gz the $python3 configure.py
> produces the following error..
>
> Determining the layout of your Qt installation...
> This is the GPL version of PyQt 4.7 (licensed under the GNU General Public
> License) for Python 3.1 on darwin.
>
> Type '2' to view the GPL v2 license.
> Type '3' to view the GPL v3 license.
> Type 'yes' to accept the terms of the license.
> Type 'no' to decline the terms of the license.
>
> Do you accept the terms of the license? yes
> Checking to see if the QtGui module should be built...
> Checking to see if the QtHelp module should be built...
> Checking to see if the QtMultimedia module should be built...
> Checking to see if the QtNetwork module should be built...
> Checking to see if the QtOpenGL module should be built...
> Checking to see if the QtScript module should be built...
> Checking to see if the QtScriptTools module should be built...
> Checking to see if the QtSql module should be built...
> Checking to see if the QtSvg module should be built...
> Checking to see if the QtTest module should be built...
> Checking to see if the QtWebKit module should be built...
> Checking to see if the QtXml module should be built...
> Checking to see if the QtXmlPatterns module should be built...
> Checking to see if the phonon module should be built...
> Checking to see if the QtAssistant module should be built...
> Checking to see if the QtDesigner module should be built...
> Qt v4.6.0 free edition is being used.
>
> Qt is built as a framework.
> SIP 4.10.1 is being used.
> The Qt header files are in /usr/include.
> The shared Qt libraries are in /Library/Frameworks.
> The Qt binaries are in /Developer/Tools/Qt.
> The Qt mkspecs directory is in /usr/local/Qt4.6.
> These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
> QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest,
> QtWebKit,
> QtXml, QtXmlPatterns, QtAssistant, QtDesigner.
> The PyQt Python package will be installed in
>
> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages.
> PyQt is being built with generated docstrings.
> PyQt is being built with 'protected' redefined as 'public'.
> The Designer plugin will be installed in
> /Developer/Applications/Qt/plugins/designer.
> The PyQt .sip files will be installed in
> /Library/Frameworks/Python.framework/Versions/3.1/share/sip/PyQt4.
> pyuic4, pyrcc4 and pylupdate4 will be installed in
> /Library/Frameworks/Python.framework/Versions/3.1/bin.
> Generating the C++ source for the QtCore module...
> 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]
> Error: Unable to create the C++ code.
>
> Am i doing anything wrong here??
>
> Regards,
> Jeba
>
>
> On Mon, Apr 5, 2010 at 8:50 PM, Darren Dale <dsdale24 at gmail.com> wrote:
>
>> On Mon, Apr 5, 2010 at 11:09 AM, Jebagnana Das <jebagnanadas at gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I found an archived discussion regarding the same problem. Click
>> here
>> > to see the discussion. But the solution proposed here is bit confusing.
>> I
>> > hope this issue must have been fixed by now(It was posted on Nov 2009).
>> > Anybody have the new solution of installing pyqt 0n mac os x 10.6.2??
>>
>> Try here:
>> http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19680.html
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100406/6f3d564d/attachment.html>
More information about the PyQt
mailing list