<?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>Sam&#039;s occasional tech thinkings &#187; python</title>
	<atom:link href="http://www.ziazoo.co.uk/blog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ziazoo.co.uk/blog</link>
	<description>I wish I got it right more!</description>
	<lastBuildDate>Wed, 12 May 2010 13:05:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1-alpha-15359</generator>
		<item>
		<title>Installing psycopg2 on Leopard</title>
		<link>http://www.ziazoo.co.uk/blog/2009/05/16/installing-pscopg2-on-leopard/</link>
		<comments>http://www.ziazoo.co.uk/blog/2009/05/16/installing-pscopg2-on-leopard/#comments</comments>
		<pubDate>Sat, 16 May 2009 18:59:36 +0000</pubDate>
		<dc:creator>sammy</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[turbogears]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[psycopg2]]></category>

		<guid isPermaLink="false">http://www.ziazoo.co.uk/blog/?p=88</guid>
		<description><![CDATA[Have been building a site using Turbogears 2.0 of late (which is awesome), and decided it was time to start setting up my staging and production environments.  Thus far I have just been developing locally with sqlite, but in production I want to use postgresql&#8230; so tried to install psycopg2 via distutils and was met [...]]]></description>
			<content:encoded><![CDATA[<p><span>Have been building a site using <a href="http://turbogears.org/">Turbogears 2.0</a> of late (which is awesome), and decided it was time to start setting up my staging and production environments.  Thus far I have just been developing locally with sqlite, but in production I want to use <a href="http://www.postgresql.org/">postgresql</a>&#8230; so tried to install psycopg2 via distutils and was met with the following error</span></p>
<pre name="code" style="margin-top:10px; margin-bottom:10px;">NameError: global name 'w' is not defined</pre>
<p>Eek!</p>
<p><span>Finding the solution seemed to take me far too many googles&#8230; so thought I’d pop up here so I have no excuse for forgetting next time I do exactly the same</span></p>
<p><span>For me the solution was to add the following to my path, since I appears that pscopg2 requires postgres to be installed before it can compile (My version of postgres is installed via macports)</span></p>
<pre name="code" style="margin-top:10px; margin-bottom:10px;" >export PATH=/Library/PostgreSQL/8.3/bin:$PATH</pre>
<p><span>Once the postgres bin folder was in the path pscopg2 compiled without any troubles. Win</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ziazoo.co.uk/blog/2009/05/16/installing-pscopg2-on-leopard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
