<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xster.net &#187; 64</title>
	<atom:link href="http://tech.xster.net/tag/64/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Mon, 30 Aug 2010 00:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PyQt and Snow Leopard</title>
		<link>http://tech.xster.net/tips/pyqt-and-snow-leopard/</link>
		<comments>http://tech.xster.net/tips/pyqt-and-snow-leopard/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 23:11:12 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[32]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[i386]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[PyQt]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=148</guid>
		<description><![CDATA[There are some 64-bit related issues when using PyQt and Snow Leopard. There&#8217;s the way to resolve it by reverting to 32-bits: Get the latest versions of PyQt and SIP. You need Qt installed of course. Configure SIP using python configure.py --arch i386 Configure PyQt using python configure.py --use-arch=i386 Finally, make sure your python is [...]]]></description>
			<content:encoded><![CDATA[<p>There are some 64-bit related issues when using PyQt and Snow Leopard. There&#8217;s the way to resolve it by reverting to 32-bits:</p>
<ol>
<li>Get the <a href="http://www.riverbankcomputing.co.uk/software/pyqt/download">latest versions</a> of PyQt and SIP. You need Qt installed of course.</li>
<li>Configure SIP using</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python configure.py <span style="color: #660033;">--arch</span> i386</pre></div></div>

<li>Configure PyQt using</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python configure.py <span style="color: #660033;">--use-arch</span>=i386</pre></div></div>

<li>Finally, make sure your python is running in 32-bit mode because current Qt doesn&#8217;t support 64-bit mode. Add

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">VERSIONER_PYTHON_PREFER_32_BIT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p> to your .bash_profile in your home directory</p>
</li>
<li>If your Python still refuses to run in 32 bit mode, try

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">arch</span> <span style="color: #660033;">-i386</span> python</pre></div></div>

</li>
</ol>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;t=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PyQt+and+Snow+Leopard+-+http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;n=PyQt+and+Snow+Leopard&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;t=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard&amp;summary=There%20are%20some%2064-bit%20related%20issues%20when%20using%20PyQt%20and%20Snow%20Leopard.%20There%27s%20the%20way%20to%20resolve%20it%20by%20reverting%20to%2032-bits%3A%0D%0A%0D%0AGet%20the%20latest%20versions%20of%20PyQt%20and%20SIP.%20You%20need%20Qt%20installed%20of%20course.%0D%0AConfigure%20SIP%20using%0D%0Apython%20configure.py%20--arch%20i386%0D%0AConfigure%20PyQt%20using%0D%0Apython%20configure.py%20&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/pyqt-and-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
