From: <gh...@gh...> - 2006-07-14 20:17:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 T=E4nia Jesini wrote: > Hi all, >=20 > I'm trying to install the lib PyPgSQL to access PostGresSQL from Python > but I didn't get successful. >=20 > My environment is: >=20 > - Windows XP > - PostGresSQL 8.1 > - Python 2.4 > - PyPgSQL 2.5.1 >=20 > What I did up to now: >=20 > I've tried to install the binary version of PyPgSQL: >=20 > pyPgSQL-2.5.1.win32-py2.4.exe > <http://prdownloads.sourceforge.net/pypgsql/pyPgSQL-2.5.1.win32-py2.4.e= xe?download> >=20 > I've followed the wizard, that is in fact very simple, and tested on > Python environment. >=20 > I got the followin error: >=20 > ------------------------- > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > File "C:\Python24\Lib\site-packages\pyPgSQL\PgSQL.py", line 449, in ? > from libpq import * > File "C:\Python24\Lib\site-packages\pyPgSQL\libpq\__init__.py", line > 23, in ? > from libpq import * > ImportError: DLL load failed: The specified module could not be found. > ---------------------------- >=20 > thank you for any help, You will need to make sure that the PostgreSQL DLLs are found. I have don= e this by installing PostgreSQL for Windows, and then either a) putting the bin/ directory in the PATH or b) copying the needed DLLs into the C:\Python24\Lib\site-packages\pyPgSQL\libpq\ directory. - -- Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEt/wGdIO4ozGCH14RAk0XAJ9qgq+h2Ap4dve6Xjy+UfdGcQyfLgCfczjW M8XwSpKvxN4Ymv5tLv60Fhk=3D =3DDmdh -----END PGP SIGNATURE----- |