Hi -- Any help on the following problem would be appreciated.

I've grabbed the source tarball for PyGreSQL. I ran build and install as 
follows:

> earthsea:PyGreSQL-4.0 adamshaw$ python setup.py build
> running build
> running build_py
> running build_ext
> earthsea:PyGreSQL-4.0 adamshaw$ python setup.py install
> running install
> running build
> running build_py
> running build_ext
> running install_lib
> running install_egg_info
> Removing /Library/Python/2.6/site-packages/PyGreSQL-4.0-py2.6.egg-info
> Writing /Library/Python/2.6/site-packages/PyGreSQL-4.0-py2.6.egg-info

So far so good. But I get a complaint about _PQclear when I try to import pg.

> earthsea:PyGreSQL-4.0 adamshaw$ python
> 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 pg
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "pg.py", line 21, in <module>
>     from _pg import *
> 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


This isn't just an interactive problem -- when I run scripts that import pg, I 
get the same error (not surprisingly).

Any ideas what's going on here? My postgres, btw, is

> earthsea:PyGreSQL-4.0 adamshaw$ psql --version
> psql (PostgreSQL) 9.0.2

and furthermore

> earthsea:PyGreSQL-4.0 adamshaw$ uname -a
> Darwin earthsea.cs.uchicago.edu 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 
> 29 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64

Thanks for any help.

  - Adam

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

Reply via email to