From: | "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com> |
---|---|
To: | psycopg(at)postgresql(dot)org |
Subject: | Re: Trouble installing psycopg2 on Mac OSX 10.6 |
Date: | 2011-05-16 22:55:58 |
Message-ID: | 0409A3EA-08EA-4375-B39F-DDC00612ED9B@themactionfaction.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On May 16, 2011, at 6:42 PM, Bill Carithers wrote:
> Hi Daniele,
>
> OK, progress. Now it seems to find all the stuff in the new Postgres
> installation, and the build/install seems to work-- makes an egg in
> site-packages and so on. However, when I try to import psycopg2, I get an
> error:
> Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
> [GCC 4.2.1 (Apple Inc. build 5646)] 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.6/site-packages/psycopg2/__init__.py", line 71, in
> <module>
> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> ImportError: dlopen(/Library/Python/2.6/site-packages/psycopg2/_psycopg.so,
> 2): Symbol not found: _PQbackendPID
> Referenced from: /Library/Python/2.6/site-packages/psycopg2/_psycopg.so
> Expected in: flat namespace
> in /Library/Python/2.6/site-packages/psycopg2/_psycopg.so
>
> I'm not including all the build output (it's very long) unless you think it
> would be helpful.
Be sure to nuke any old psycopgs egg files you might have hanging around in your python path.
Cheers,
M
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2011-05-16 23:11:16 | Re: Trouble installing psycopg2 on Mac OSX 10.6 |
Previous Message | Bill Carithers | 2011-05-16 22:42:17 | Re: Trouble installing psycopg2 on Mac OSX 10.6 |