DLL Load failure for matploltlib._png

Hi,

I built matplotlib1.2.0 with python3.2 on Windows7 from source.
I built the libpng and freetype libs and linked them statically to matplotlib.

Everything works fine on my machine, I can run the matplotlib examples etc
But on a new Win7 machine(with the exact same configuration as mine, except a few softwares), I get the following error when i try to import png module like this:

import matplotlib._png

ImportError:
DLL load failed: The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log or use the
command-line sxstrace.exe tool for more detail.

I used the dependency walker and found that pyd_ DLL was indeed having issues during load.

What could be the reason. Surprisingly it works all fine on my machine.

Regards,
Tej

Assuming this is 32 bit Python, install the Microsoft Visual C++ 2008 Redistributable Package (x86) <from http://www.microsoft.com/en-us/download/details.aspx?id=29&gt;

Christoph

···

On 3/7/2013 6:00 AM, Tejashri Kandolkar wrote:

Hi,

I built matplotlib1.2.0 with python3.2 on Windows7 from source.
I built the libpng and freetype libs and linked them statically to
matplotlib.

Everything works fine on my machine, I can run the matplotlib examples etc
But on a new Win7 machine(with the exact same configuration as mine,
except a few softwares), I get the following error when i try to import
png module like this:

import matplotlib._png

ImportError: DLL load failed: The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for more
detail.

I used the dependency walker and found that pyd_ DLL was indeed having
issues during load.

What could be the reason. Surprisingly it works all fine on my machine.

Regards,
Tej

Besides that, look for extra msvcp90.dll or msvcr90.dll files in PATH (for example MikteX is known for that) and resolve conflicts.

Christoph

···

On 3/7/2013 8:39 AM, Christoph Gohlke wrote:

On 3/7/2013 6:00 AM, Tejashri Kandolkar wrote:

Hi,

I built matplotlib1.2.0 with python3.2 on Windows7 from source.
I built the libpng and freetype libs and linked them statically to
matplotlib.

Everything works fine on my machine, I can run the matplotlib examples etc
But on a new Win7 machine(with the exact same configuration as mine,
except a few softwares), I get the following error when i try to import
png module like this:

import matplotlib._png

ImportError: DLL load failed: The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for more
detail.

I used the dependency walker and found that pyd_ DLL was indeed having
issues during load.

What could be the reason. Surprisingly it works all fine on my machine.

Regards,
Tej

Assuming this is 32 bit Python, install the Microsoft Visual C++ 2008
Redistributable Package (x86) <from
http://www.microsoft.com/en-us/download/details.aspx?id=29&gt;