[PyGreSQL] ImportError: DLL load failed: The specified module could
not be found.
H 121
h112211 at gmail.com
Wed Aug 2 02:37:39 EDT 2006
Hi,
I just installed the latest PyGreSQL, but trying to run my script I get:
Traceback (most recent call last):
File "<pathtomyscript>\main.py", line 3, in -toplevel-
import pgdb
File "C:\Program Files\Python24\Lib\site-packages\pgdb.py", line 69,
in -toplevel-
from _pg import *
ImportError: DLL load failed: The specified module could not be found.
A quick surfing session suggested that this happens because libpq.dll cannot
be found, but yes, the dir containing libpq.dll (c:\program
files\postgresql\8.1\bin) is in my windows path.
However, if I start the Python command line (from the installer-created
start menu shortcut) I can "import pgdb" without any errors whatsoever.
Anyone have any ideas why the import works from the command line but not
from IDLE?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.vex.net/pipermail/pygresql/attachments/20060802/77383cdb/attachment-0001.html
More information about the PyGreSQL
mailing list