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?
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to