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

installation problems on OSX Lion

From: Sean Moss-Pultz <sean(at)openmoko(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: installation problems on OSX Lion
Date: 2011-07-24 07:02:45
Message-ID: (view raw or whole thread)
Lists: psycopg

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?



psycopg by date

Next:From: Daniele VarrazzoDate: 2011-07-24 19:48:55
Subject: Re: installation problems on OSX Lion
Previous:From: Adrian KlaverDate: 2011-07-20 00:33:48
Subject: Re: I wish I could pass bound variables as a dictionary not a list

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