views:

45

answers:

2

import pg

Traceback (most recent call last):

File "", line 1, in

import pg

File "C:\EPD\lib\site-packages\pg.py", line 21, in

from _pg import *

ImportError: DLL load failed: The specified module could not be found.

I downloaded PyGreSQL 4.0 for windows, and installed it into the \LIB\site-packages of my python directory. When i try to import pg.py , I get this error. :(

A: 

Have you looked in the C:\EPD\lib\site-packages\ directory? Perhaps you did not install to the right site-packages directory?

Erik B
+1  A: 

Looks like it's unable to find libpq.dll. Make sure that the directory which contains libpq.dll from your PostgreSQL installation is in your Windows path.

Andrew