From: <at...@ko...> - 2006-08-14 14:27:41
|
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 |