Re: PyPgSQL Windows XP Installation
Gerhard Häring <[email protected]> Fri, 14 Jul 2006 22:18:14 +0200
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 T=E4nia Jesini wrote: > Hi all, > = > I'm trying to install the lib PyPgSQL to access PostGresSQL from Python > but I didn't get successful. > = > My environment is: > = > - Windows XP > - PostGresSQL 8.1 > - Python 2.4 > - PyPgSQL 2.5.1 > = > What I did up to now: > = > I've tried to install the binary version of PyPgSQL: > = > pyPgSQL-2.5.1.win32-py2.4.exe > <http://prdownloads.sourceforge.net/pypgsql/pyPgSQL-2.5.1.win32-py2.4.exe= ?download> > = > I've followed the wizard, that is in fact very simple, and tested on > Python environment. > = > I got the followin error: > = > ------------------------- > 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. > ---------------------------- > = > thank you for any help, You will need to make sure that the PostgreSQL DLLs are found. I have done 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----- ------------------------------------------------------------------------- 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 easi= er Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1= 21642