<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing psycopg2 on OS X</title>
	<atom:link href="http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/</link>
	<description>A Boy and His Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:41:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: QWorks</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-15397</link>
		<dc:creator>QWorks</dc:creator>
		<pubDate>Mon, 31 Oct 2011 00:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-15397</guid>
		<description>Thank you a million times over. I have been trying to get psycopg2 on OS X Lion for like 4 hours now...This was the single thing that finally got rid of my headache!!
Now on to developing</description>
		<content:encoded><![CDATA[<p>Thank you a million times over. I have been trying to get psycopg2 on OS X Lion for like 4 hours now&#8230;This was the single thing that finally got rid of my headache!!<br />
Now on to developing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-12744</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Fri, 11 Feb 2011 19:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-12744</guid>
		<description>This doesnt work in Snow Leopard. Do you have any updates on how to make it run in 10.6?

I still get the following:


Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import psycopg2
Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
  File &quot;/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/__init__.py&quot;, line 69, in 
    from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _PQbackendPID
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so
  Expected in: dynamic lookup


Will appreciate any feedback!</description>
		<content:encoded><![CDATA[<p>This doesnt work in Snow Leopard. Do you have any updates on how to make it run in 10.6?</p>
<p>I still get the following:</p>
<p>Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51)<br />
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; import psycopg2<br />
Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in<br />
  File &#8220;/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/__init__.py&#8221;, line 69, in<br />
    from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID<br />
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _PQbackendPID<br />
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so<br />
  Expected in: dynamic lookup</p>
<p>Will appreciate any feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-9312</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 05 Aug 2010 20:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-9312</guid>
		<description>Installing psycopg2 on Mac OS X
Friday, 30. October 2009 Filed in: Apple
psycopg2 is an adapter to PostgreSQL for Python. Install this software on GNU/Linux is easy because many distros offer binary packages ready to install it. On Mac OS X is different so we explain how to do that.

Of course, you need to install PostgreSQL and Python before to install this adapter. When you are ready you must follow this steps:

$ wget http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz
$ tar -zxvf psycopg2-2.0.12.tar.gz
$ cd psycopg-2.0.12
$ export PATH=$PATH:/Library/PostgreSQL/8.4/bin/
$ python setup.py build
$ sudo python setup.py install

Then you can use this adapter in your Python scripts:

&gt;&gt; import psycopg2</description>
		<content:encoded><![CDATA[<p>Installing psycopg2 on Mac OS X<br />
Friday, 30. October 2009 Filed in: Apple<br />
psycopg2 is an adapter to PostgreSQL for Python. Install this software on GNU/Linux is easy because many distros offer binary packages ready to install it. On Mac OS X is different so we explain how to do that.</p>
<p>Of course, you need to install PostgreSQL and Python before to install this adapter. When you are ready you must follow this steps:</p>
<p>$ wget <a href="http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz" rel="nofollow">http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz</a><br />
$ tar -zxvf psycopg2-2.0.12.tar.gz<br />
$ cd psycopg-2.0.12<br />
$ export PATH=$PATH:/Library/PostgreSQL/8.4/bin/<br />
$ python setup.py build<br />
$ sudo python setup.py install</p>
<p>Then you can use this adapter in your Python scripts:</p>
<p>&gt;&gt; import psycopg2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carriere</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-8411</link>
		<dc:creator>carriere</dc:creator>
		<pubDate>Mon, 10 May 2010 15:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-8411</guid>
		<description>I&#039;ve got the same error 
psycopg/psycopgmodule.c:822: error: &#039;PyType_GenericAlloc&#039; undeclared (first use in this function)
error: command &#039;gcc&#039; failed with exit status 1


did you find a solution ?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got the same error<br />
psycopg/psycopgmodule.c:822: error: &#8216;PyType_GenericAlloc&#8217; undeclared (first use in this function)<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
<p>did you find a solution ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johann Spies</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-8349</link>
		<dc:creator>Johann Spies</dc:creator>
		<pubDate>Sat, 24 Apr 2010 15:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-8349</guid>
		<description>My installation on Snow Leopard ends with

 sudo python setup.py install
running install
running build
running build_py
running build_ext
building &#039;psycopg2._psycopg&#039; extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=&quot;2.0.14 (dt dec ext pq3)&quot; -DPG_VERSION_HEX=0x080403 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I. -I/Library/PostgreSQL/8.4/include -I/Library/PostgreSQL/8.4/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.3-i386-2.5/psycopg/psycopgmodule.o
cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;
cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;
lipo: can&#039;t figure out the architecture type of: /var/tmp//ccmP38pg.out
error: command &#039;gcc&#039; failed with exit status 1

How do I fix it?</description>
		<content:encoded><![CDATA[<p>My installation on Snow Leopard ends with</p>
<p> sudo python setup.py install<br />
running install<br />
running build<br />
running build_py<br />
running build_ext<br />
building &#8216;psycopg2._psycopg&#8217; extension<br />
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=&#8221;2.0.14 (dt dec ext pq3)&#8221; -DPG_VERSION_HEX=0&#215;080403 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I. -I/Library/PostgreSQL/8.4/include -I/Library/PostgreSQL/8.4/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.3-i386-2.5/psycopg/psycopgmodule.o<br />
cc1: error: unrecognized command line option &#8220;-Wno-long-double&#8221;<br />
cc1: error: unrecognized command line option &#8220;-Wno-long-double&#8221;<br />
lipo: can&#8217;t figure out the architecture type of: /var/tmp//ccmP38pg.out<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
<p>How do I fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-7612</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Tue, 02 Feb 2010 20:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-7612</guid>
		<description>I pasted the wrong link in above.  The correct one is &lt;a href=&quot;http://osdir.com/ml/DjangoUsers/2009-07/msg00889.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I pasted the wrong link in above.  The correct one is <a href="http://osdir.com/ml/DjangoUsers/2009-07/msg00889.html" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-7611</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Tue, 02 Feb 2010 20:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-7611</guid>
		<description>None of the steps above worked for me.  [Snow Leopard 10.6.2; PostgreSQL 8.4, pyscopg2-2.0.13]

&lt;a href=&quot;http://osdir.com/ml/DjangoUsers/2009-07/msg01095.html&quot; rel=&quot;nofollow&quot;&gt;A post&lt;/a&gt; on the Django Users list at osdir.com had the suggestion to update easy_install:

sudo easy_install -U setuptools

This followed by adding the PostgreSQL bin to my path allowed easy_install to succeed.</description>
		<content:encoded><![CDATA[<p>None of the steps above worked for me.  [Snow Leopard 10.6.2; PostgreSQL 8.4, pyscopg2-2.0.13]</p>
<p><a href="http://osdir.com/ml/DjangoUsers/2009-07/msg01095.html" rel="nofollow">A post</a> on the Django Users list at osdir.com had the suggestion to update easy_install:</p>
<p>sudo easy_install -U setuptools</p>
<p>This followed by adding the PostgreSQL bin to my path allowed easy_install to succeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-7287</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 29 Dec 2009 22:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-7287</guid>
		<description>Thanks!! Your original one works, but not the shorter one for me...</description>
		<content:encoded><![CDATA[<p>Thanks!! Your original one works, but not the shorter one for me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Simmer</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-7036</link>
		<dc:creator>David Simmer</dc:creator>
		<pubDate>Tue, 27 Oct 2009 16:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-7036</guid>
		<description>I should clarify, I was using Fink to install pyscopg2 into python2.4 on Snow Leopard, where fink doesn&#039;t have pyscopg2 available for python2.4. If i were using python 2.5 or 2.6, a simple &quot;fink install psycopg2&quot; would have been sufficient.</description>
		<content:encoded><![CDATA[<p>I should clarify, I was using Fink to install pyscopg2 into python2.4 on Snow Leopard, where fink doesn&#8217;t have pyscopg2 available for python2.4. If i were using python 2.5 or 2.6, a simple &#8220;fink install psycopg2&#8243; would have been sufficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Simmer</title>
		<link>http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/comment-page-1/#comment-7035</link>
		<dc:creator>David Simmer</dc:creator>
		<pubDate>Tue, 27 Oct 2009 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/#comment-7035</guid>
		<description>Hugely helpful, thank you. In my case I&#039;m using Fink, so my command was:

PATH=$PATH:/usr/local/pgsql/bin/ sudo easy_install psycopg2</description>
		<content:encoded><![CDATA[<p>Hugely helpful, thank you. In my case I&#8217;m using Fink, so my command was:</p>
<p>PATH=$PATH:/usr/local/pgsql/bin/ sudo easy_install psycopg2</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.319 seconds -->

