In trying to solve another issue, I was pointed to <a href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</a><br><br>I&#39;d seen this tool before - but couldn&#39;t remember what it was called!<br><br>

Anyways, after a couple of false starts (for msvc90rt.dll and dwmapi.dll) the tool pointed me to incompatible versions of ssleay32.dll - I upgraded to the latest version on my machine. This resolved the &#39;ImportError: DLL load failed: The operating system cannot run %1.&#39; error. <br>

<br>However, this gave me a new error &#39;ImportError: DLL load failed: The specified procedure could not be found.&#39;  which was due to an incompatible libeay32.dll.<br><br>However, using the two versions from the same location on my machine (from glassfish directory), I&#39;m able to load pygresql! Maybe this will help someone else down the road!<br>

<br>Bryan.<br><br><div class="gmail_quote">On Wed, Feb 3, 2010 at 12:24 PM, Christoph Zwerschke <span dir="ltr">&lt;<a href="mailto:cito@online.de">cito@online.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Maybe on the commandline you have a different PATH than when running your Python script? Otherwise I&#39;m running out of ideas.<br>
<br>
You can try to compile PyGreSQL yourself using the header files of your Postgres version, but you will need MinGW or Visual Studio for that.<div><div></div><div class="h5"><br>
<br>
-- Christoph<br>
_______________________________________________<br>
PyGreSQL mailing list<br>
PyGreSQL@Vex.Net<br>
<a href="http://mailman.vex.net/mailman/listinfo/pygresql" target="_blank">http://mailman.vex.net/mailman/listinfo/pygresql</a><br>
</div></div></blockquote></div><br>