[PyGreSQL] Installation problem on Windows...
Daryl Tester
dt-pygresql at handcraftedcomputers.com.au
Fri Mar 14 20:43:59 EDT 2008
jr at openstage.org wrote:
> I installed via the standard Windows installer. I did nothing else (the
> installation instructions don't say to do anything else!)
I haven't used the Windows version in a while, so some of this is radical
guesswork on my part ...
> Several files are now in Python25/Lib/site-packages including _pg.pyd, py.py(and pyc/pyo),
...
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in <module>
> from pg import DB
> File "C:\Python25\Lib\site-packages\pg.py", line 21, in <module>
> from _pg import *
> ImportError: DLL load failed: The specified module could not be found.
> >>>
>
> That is it. Not very imformative (obviously it seems to be missing a DLL)
The DLL in question is _pg.pyd, which seems to be located in the correct
directory (the same one as pg.py), so I'm not sure what its issue is.
Can you "import _pg" on its own (instead of "import pg"). _pg may require
the DLL for Postgres, whose lib name escapes me (libpq?) - do you have
any Postgres libraries installed and included the library path in
PATH?
--
Regards,
Daryl Tester
"We are sexy, sexy Von Neumann machines." -- http://www.xkcd.org/387/
More information about the PyGreSQL
mailing list