<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:bookman old style,new york,times,serif;font-size:10pt"><div>Thanks, Darren - That's a good start, and I can try to follow that.<br><br>My first challenge is getting back to the 64 bit python.&nbsp; (By the way, is there a way to tell, once I have it, whether it is 32 bit or 64 bit?)<br><br>Macport sounds like a WONDERFUL idea!&nbsp; I noticed your comments were prefaced with "if you are not using macports..."&nbsp; I have just installed it, but want to do some sanity checks before I start trashing my system.&nbsp; I did a SEARCH and found Python26 - but there is no reference to it being 32 or 64 bit - how do I know it is the 'right' (64 bit) one?<br><br>If I understand your notes below, I should macport "qt4-mac-devel" because the "qt4-mac" is actually 4.5.3 and the one I really want is 4.6.0?<br><br>I notice that there is also a py26-sip that
 macport found - I assume that is the right one to install after python.<br><br>I also found a macport for py26-pyqt4.&nbsp; Will macport'ing this complete the installation?&nbsp; (i.e. replace the instructions you gave below?)<br><br>Sorry to ask so many dumb questions, but the environment is still a bit alien to me.<br><br>Bruce<br></div><div style="font-family: bookman old style,new york,times,serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Darren Dale &lt;dsdale24@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Bruce Anderson &lt;bruce306@rogers.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> pyqt@riverbankcomputing.com<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, December 18, 2009 5:40:06 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re:
 [PyQt] Need help installing PyQt on Snow Leopard<br></font><br>Hi Bruce,<br><br>On Fri, Dec 18, 2009 at 4:43 PM, Bruce Anderson &lt;<a ymailto="mailto:bruce306@rogers.com" href="mailto:bruce306@rogers.com">bruce306@rogers.com</a>&gt; wrote:<br>&gt; I tired the standard instructions from Mark Summerfield's book. &nbsp;Failed - 64<br>&gt; bit vs 32 bit. &nbsp;I successfully installed a new version of Python (2.6.4),<br>&gt; the XCode from the install disk, Qt (Carbon, I think - 32 bit?), &nbsp;and SIP.<br>&gt; &nbsp;Only PyQt failed.<br><br>If you installed python-2.6.4 from a binary distributed by python.org,<br>then that is probably the source of the problem. Their mac binaries do<br>not support 64 bits at the time of this writing. I suggest either<br>using the python that ships with snow leopard or using macports,<br>depending on your preference.<br><br>&gt; Then I found Darren Dale's note from Dec 2nd and tried the .dmg that he<br>&gt; referenced.
 (Cocoa? - 64 bit)<br>&gt; That failed too. &nbsp;I've confirmed that PyQt has not been successfully<br>&gt; installed, but at this point, I don't know what kind of a mess I've left my<br>&gt; machine in. &nbsp;Do I have to worry about having two versions of Qt on my<br>&gt; machine? NOTE: I've been in the PC world for decades, but have only been in<br>&gt; the MAC world since Thursday - so I don't really know my way around yet.<br>&gt; I have two very explicit questions:<br>&gt; 1) Can anyone post clear instructions (step by step, including where to put<br>&gt; things) on how to get PyQt working for the first time on Snow Leopard<br>&gt; (10.6.1 is what I have).<br><br>I don't have time to spell out each step. Here is what I can offer if<br>you are not using macports or fink:<br><br>* for now, use the python installed by snow leopard, not the binaries<br>distributed at python.org<br>* 64-bit Qt binary:<br><a
 href="http://download.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.0.dmg" target="_blank">http://download.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.0.dmg</a><br><br>SIP:<br>python configure.py -n -d /Library/Python/2.6/site-packages -b<br>/usr/local/bin -e /usr/local/include -v /usr/local/share/sip<br>--arch=x86_64 -s MacOSX10.6.sdk<br><br>PyQt:<br>export QTDIR=/Developer/Applications/Qt<br>python configure.py -d /Library/Python/2.6/site-packages -b<br>/usr/local/bin --use-arch=x86_64<br><br>I've also added the following to my ~/.profile, which distutils<br>respects when compiling extensions (this is probably not terribly<br>relevant to PyQt4):<br><br>export ARCHFLAGS="-arch x86_64"<br><br><br>I don't have experience with Fink, but as of a few days ago I cleaned<br>out my system and am now using macports. I am not advocating this<br>approach, since I don't have enough experience with macports to<br>provide an informed opinion. But for the
 record, I made a local port<br>repository and copied the portfile for qt4-mac-devel (which provides<br>qt-4.6.0 with support for cocoa) and saved it as qt4-mac (the qt4-mac<br>port provided by macports should provide qt-4.5.3 but I ran into a<br>compilation problem with that version:<br><a href="http://trac.macports.org/ticket/22926" target="_blank">http://trac.macports.org/ticket/22926</a>). PyQt4 appears to be working<br>with this installation method.<br><br>&gt; 2) Do I have to worry about any messes left behind by the failed install<br>&gt; attempts? &nbsp;Does the new install just clean it up? &nbsp;If YES, how do I go about<br>&gt; finding the things I have to clean up?<br><br>I think the Qt installs probably overwrote each other. But you might<br>want to delete the old Qt installation (move the folders to the trash)<br>and reinstall if you continue to have problems. I dont think this<br>should be
 necessary.<br><br>_______________________________________________<br>PyQt mailing list&nbsp; &nbsp; <a ymailto="mailto:PyQt@riverbankcomputing.com" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></div></div>
<!-- cg6.c202.mail.ac4.yahoo.com compressed/chunked Wed Dec 16 13:22:03 PST 2009 -->
</div></body></html>