I have got this error on a very clean installation of Windows 98SE and matplotlib 0.87.4 / numpy 0.9.8 / official python 2.4.
from pylab import *
The import of the numpy version of the _transforms module,
_ns_transforms, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_ns_transforms could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_ns_transforms was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
Traceback (most recent call last):
File “<pyshell#0>”, line 1, in ?
from pylab import *
File “C:\Python24\Lib\site-packages\pylab.py”, line 1, in ?
from matplotlib.pylab import *
File “C:\Python24\Lib\site-packages\matplotlib\pylab.py”, line 200, in ?
from axes import Axes, PolarAxes
File “C:\Python24\Lib\site-packages\matplotlib\axes.py”, line 14, in ?
from artist import Artist, setp
File “C:\Python24\Lib\site-packages\matplotlib\artist.py”, line 4, in ?
from transforms import identity_transform
File “C:\Python24\Lib\site-packages\matplotlib\transforms.py”, line 215, in ?
from _transforms import Value, Point, Interval, Bbox, Affine
File “C:\Python24\Lib\site-packages\matplotlib_transforms.py”, line 17, in ?
from matplotlib._ns_transforms import *
ImportError: DLL load failed: Não é possível encontrar um dos arquivos de biblioteca necessário para executar esse aplicativo.
(free translation -> DLL load failed: Couldn’t find one of the files of the library needed to run this program)
I have searched for it and found this post http://mail.enthought.com/pipermail/enthought-dev/2006-May/001597.html, that seems so much like my problem, except that it is using Numeric not numpy.
Also, i found this post http://firstname.lastname@example.org/msg00502.html that could be related to my problem.
So, I decided to pull this DLL from the web and throw at C:\Windows\System. Then, everything worked fine.
This confirms Christopher Barker suspicions (
http://email@example.com/msg00523.html ) that it is a DLL not shipped with stock Windows but some other program would install it (that is what nobody complained about the missing DLL).
I think matplotlib should ship this DLL, as a lot of other programs do…