Hi,
I am trying to use PyGreSQL in windows and have been exasperated by the
following error when I write the "import pg" statement in python command
line:

>>> 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.
>>>

Can anyone help me with why I am getting this error?
I have Python 2.6 and Postgres 8.3 installed. I used the windows installer
for PyGreSQL (the one for python 2.6) from here  "
http://www.pygresql.org/readme.html#download-pygresql-here ".
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 !

I would really appreciate any ideas on why am I seeing this error.

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

Reply via email to