Using pyPgSQL on Mac OS X Tiger
[email protected] Mon, 14 Aug 2006 16:27:24 +0200
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
I downloaded and built the package on Mac OS X 10.4 via "python setup.py build". Then I installed it with "python setup.py install" "import pyPgSQL" works, but "from pyPgSQL import PgSQL" brings up an error message. It sais: "ImportError: No module named libpq" The folderstructure in site-packages looks like this: ./pyPgSQL/ ./pyPgSQL/__init__.py ./pyPgSQL/__init__.pyc ./pyPgSQL/PgSQL.py ./pyPgSQL/PgSQL.pyc ./pyPgSQL//libpq/ ./pyPgSQL//libpq/__init__.py ./pyPgSQL//libpq/__init__.pyc ./pyPgSQL//libpq/libpqmodule.so I also renamed the module twice, first in the file system and then in setup.py. so the last file looked like this: ./pyPgSQL//libpq/libpq.so Still the same Error. Does anyone know of a solution? Regards, atillla ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642