Priya Gupta schrieb:
>> import pg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\site-packages\pg.py", line 21, in <module>
    from _pg import *
ImportError: DLL load failed: The operating system cannot run %1.

As mentioned on the install page, I have set Postgres bin and lib paths (containing libpq.dll) into the Windows PATH environment variable..I also set it in PYTHONPATH variable. But I am still getting this error !

Just installed PygreSQL 4.0 from the location you mentioned on Win XP with Py 2.6 and PG 8.3 - works fine for me.

Actually you only need to put the Postgres bin path into the Win PATH.

The error indicates that your dll is in fact found, but something seems to be foul with your Postgres installation. Which Postgres minor version do you use? Maybe reinstalling PG will help.

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to