Daryl Tester wrote:

> On 15/06/11 08:44, Adam Shaw wrote:
> 
> >So far so good. But I get a complaint about _PQclear when I try to import pg.
> 
> I've struck this problem before at a previous job (*not* the same platform,
> though), but unfortunately my notes remained with that company when I moved
> on.
> 
> >>ImportError: dlopen(/Library/Python/2.6/site-packages/_pg.so, 2): Symbol 
> >>not found: _PQclear
> >>  Referenced from: /Library/Python/2.6/site-packages/_pg.so
> >>  Expected in: flat namespace
> >> in /Library/Python/2.6/site-packages/_pg.so
> 
> (* Assuming OSX is close enough to Unix that the devtools are similar *)
> 
> Try diagnosing by running "ldd /Library/Python/2.6/site-packages/_pg.so"
> to see which postgres client library is being used, then run
> "nm --dynamic /path/to/postgres_client_lib" to see if PQclear is
> actually defined as exported or not.  Pay particular attention to any
> files that _pg.so might report missing (it might pay to run ldd across
> the client lib to see if that's missing any dependencies as well).
> 
> -- 
> Regards,
>  Daryl Tester
>  Handcrafted Computers Pty. Ltd.

the macosx equivalent of "ldd" is "otool -L".

cheers,
raf

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to