<?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>Fri, 20 Jan 2012 21:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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-publisher-148"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fpyqt-and-snow-leopard%2F' data-shr_title='PyQt+and+Snow+Leopard'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fpyqt-and-snow-leopard%2F' data-shr_title='PyQt+and+Snow+Leopard'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/pyqt-and-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

