In trying to solve another issue, I was pointed to
http://www.dependencywalker.com/

I'd seen this tool before - but couldn't remember what it was called!

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 'ImportError: DLL load
failed: The operating system cannot run %1.' error.

However, this gave me a new error 'ImportError: DLL load failed: The
specified procedure could not be found.'  which was due to an incompatible
libeay32.dll.

However, using the two versions from the same location on my machine (from
glassfish directory), I'm able to load pygresql! Maybe this will help
someone else down the road!

Bryan.

On Wed, Feb 3, 2010 at 12:24 PM, Christoph Zwerschke <[email protected]> wrote:

> Maybe on the commandline you have a different PATH than when running your
> Python script? Otherwise I'm running out of ideas.
>
> 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.
>
>
> -- 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