Thanks Christoph!I have installed Postgres 8.3.5-1 . And yeah I did try
installing postgres again.. did not help. Maybe I can try installing all the
things again..
Thanks again
Priya

On Mon, May 4, 2009 at 3:25 PM, Christoph Zwerschke <[email protected]> wrote:

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

Reply via email to