I am trying to install the PyGreSQL package into Python 2.7. I am running 32-bit Python on a 64-bit Windows 7 machine. The installer I am using is the file PyGreSQL-4.1.1.win32-py2.7.exe from here.
The installation of PyGreSQL purportedly proceeds successfully, but upon attempting to import the module in python, with
I receive the following error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pg.py", line 31, in <module> from _pg import * ImportError: DLL load failed: %1 is not a valid Win32 application.
My PostgreSQL installation is 64-bit, if that complicates things. Anyone know how to resolve this?