Skip site navigation (1) Skip section navigation (2)

Re: installation problems on OSX Lion

From: Sean Moss-Pultz <sean(at)openmoko(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: installation problems on OSX Lion
Date: 2011-07-25 01:03:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: psycopg
On Mon, Jul 25, 2011 at 3:48 AM, Daniele Varrazzo
<daniele(dot)varrazzo(at)gmail(dot)com> wrote:
> On Sun, Jul 24, 2011 at 8:02 AM, Sean Moss-Pultz <sean(at)openmoko(dot)com> wrote:
>> Hi
>> I'm running OSX Lion and trying to install psycopg2 2.4.2 using PIP.
>> The installation finishes successfully. But then I get the following
>> error when trying to import:
>> Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
>> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import psycopg2
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/Library/Python/2.7/site-packages/psycopg2/", line
>> 67, in <module>
>>    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
>> ImportError: dlopen(/Library/Python/2.7/site-packages/psycopg2/,
>> 2): Symbol not found: _PQbackendPID
>>  Referenced from: /Library/Python/2.7/site-packages/psycopg2/
>>  Expected in: flat namespace
>>  in /Library/Python/2.7/site-packages/psycopg2/
>> Anybody know how to fix this? They are in Google.

Honestly, if someone can figure out how to subscribe + post to a
mailing list, don't you think they'll know how to use Google?

> Yes, I believe there's plenty of solutions, googling for them.
> An index is here:
> <>.
> if you find new troubles with Lion feel free to add a comment to the
> article, thanks.

The link you sent is from 2010. A lot has changed with OSX since then.

Building on each version of OSX is quite different. I gave up trying
to get it to work with our current install (PostgreSQL 8.4). I
upgraded to PostgeSQL 9 and that finally allowed psycopg to install
using PIP.

Hope this helps for somebody else.


In response to

psycopg by date

Next:From: Владимир АпаринDate: 2011-07-26 11:49:11
Subject: Fwd: autocommit linux error
Previous:From: Daniele VarrazzoDate: 2011-07-24 19:48:55
Subject: Re: installation problems on OSX Lion

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group