Py2.5.4 on Win7

I am just installing Windows 7 Pro and I am running into a problem with matplotlib.

When running e.g. barchart_demo.py I get an error that it can not find msvcp71.dll (the dll is in C:\Python25) and I see the following exception.

Traceback (most recent call last):
  File "barchart_demo.py", line 3, in <module>
    import matplotlib.pyplot as plt
  File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line 6, in <module>
    from matplotlib.figure import Figure, figaspect
  File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 16, in <module>
    import artist
  File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 5, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
  File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: DLL load failed: Le module spcifi est introuvable.

Anyone seen this problem before on Win7?

BTW, I can run e.g. Boa (a wxPython based IDE). I have no problem running my application which is wxPython based as long as I don't call anything which uses mpl.

Version info:
Win 7 Pro
# Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
# wxPython 2.8.10.1 (unicode), Boa Constructor 0.6.1

matplotlib.__version__
'0.99.1'

Werner

P.S.
Installed Python for all users - will try installing for me only

From: Werner F. Bruhin [mailto:werner.bruhin@…185…]
Sent: Friday, October 23, 2009 07:31

I am just installing Windows 7 Pro and I am running into a
problem with matplotlib.

When running e.g. barchart_demo.py I get an error that it can
not find msvcp71.dll (the dll is in C:\Python25) and I see
the following exception.

Traceback (most recent call last):

  [...]

  File
"C:\Python25\Lib\site-packages\matplotlib\transforms.py",
line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: DLL load failed: Le module spcifi est introuvable.

  [...]

Hi, Werner. I've been running the release candidate of Windows 7 and haven't
encountered that issue. My Python installation is that of Python(x,y) 2.1.17,
which includes the same version of Python as yours, and I'm using a build of
matplotlib from SVN, although I previously used version 0.99.0 without DLL
trouble.

On my machine, I found msvcp71.dll in several directories under
C:\Python25\Lib\site-packages (including site-packages\wx-2.8-msw-unicode\wx),
in C:\Windows\System32, and in several locations under C:\Program Files, but
not in C:\Python25. There is a similarly-named msvcr71.dll in C:\Python25.

I'm wondering whether and how msvcp71.dll is related to the traceback to the
_path module, because the _path module comprises a .pyd (~= .dll) file. You
might start Python, enter "from matplotlib._path import affine_transform", and
see whether the import is successful.

Are you able to run other matplotlib examples? Can you open a figure window?
What backend are you using, and does the problem occur with other matplotlib
backends, both GUI and non-GUI?

Hi Stan,

Stan West wrote:


From: Werner F. Bruhin [] Sent: Friday, October 23, 2009 07:31
I am just installing Windows 7 Pro and I am running into a problem with matplotlib.
When running e.g. barchart_demo.py I get an error that it can not find msvcp71.dll (the dll is in C:\Python25) and I see the following exception.
Traceback (most recent call last):
[...]
    File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line 34, in <module>
from matplotlib._path import affine_transform
ImportError: DLL load failed: Le module spcifi est introuvable.

[...]
Hi, Werner. I've been running the release candidate of Windows 7 and haven't
encountered that issue.

Same here, I had no problem with the RC, but frankly did very little
work with it.


My Python installation is that of Python(x,y) 2.1.17,
which includes the same version of Python as yours, and I'm using a build of
matplotlib from SVN, although I previously used version 0.99.0 without DLL
trouble.
On my machine, I found msvcp71.dll in several directories under
C:\Python25\Lib\site-packages (including site-packages\wx-2.8-msw-unicode\wx),
in C:\Windows\System32, and in several locations under C:\Program Files, but
not in C:\Python25. There is a similarly-named msvcr71.dll in C:\Python25.

I have both “p” and “r” of msvcX71.dll.

I'm wondering whether and how msvcp71.dll is related to the traceback to the
_path module, because the _path module comprises a .pyd (~= .dll) file. You
might start Python, enter "from matplotlib._path import affine_transform", and
see whether the import is successful.

No idea, I see it when I try to run barchart_demo.py (MPL example)
which uses pyplot.

I get this error:

moz-screenshot.jpg

Free translation: can’t start program as MSVCP71.dll is missing.

If I run Process Monitor from SysInternals I see the following (partial
info):

19:22:17,5153511 python.exe 4884 CloseFile
C:\Python25\Lib\site-packages\matplotlib SUCCESS

19:22:17,5155160 python.exe 4884 QueryOpen
C:\Python25\Lib\site-packages\matplotlib_path.pyd FAST IO
DISALLOWED

19:22:17,5156277 python.exe 4884 CreateFile
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS
Desired Access: Read Attributes, Disposition: Open, Options: Open
Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete,
AllocationSize: n/a, OpenResult: Opened

19:22:17,5156601 python.exe 4884 QueryBasicInformationFile
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS
CreationTime: 21/09/2009 12:48:34, LastAccessTime: 21/09/2009 12:48:34,
LastWriteTime: 21/09/2009 12:48:34, ChangeTime: 23/10/2009 10:50:57,
FileAttributes: A

19:22:17,5156678 python.exe 4884 CloseFile
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS

19:22:17,5158058 python.exe 4884 CreateFile
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS
Desired Access: Read Data/List Directory, Execute/Traverse,
Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert,
Non-Directory File, Attributes: n/a, ShareMode: Read, Delete,
AllocationSize: n/a, OpenResult: Opened

19:22:17,5158421 python.exe 4884 CreateFileMapping
C:\Python25\Lib\site-packages\matplotlib_path.pyd FILE LOCKED WITH
ONLY READERS SyncType: SyncTypeCreateSection, PageProtection:
PAGE_EXECUTE

19:22:17,5158845 python.exe 4884 CreateFileMapping
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS
SyncType: SyncTypeOther

19:22:17,5160863 python.exe 4884 Load Image
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS Image
Base: 0x1d20000, Image Size: 0x25000

19:22:17,5163767 python.exe 4884 CloseFile
C:\Python25\Lib\site-packages\matplotlib_path.pyd SUCCESS

19:22:17,5165840 python.exe 4884 QueryOpen
C:\Python25\Lib\site-packages\matplotlib\MSVCP71.dll FAST IO
DISALLOWED

19:22:17,5166951 python.exe 4884 CreateFile
C:\Python25\Lib\site-packages\matplotlib\MSVCP71.dll NAME NOT
FOUND Desired Access: Read Attributes, Disposition: Open, Options:
Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete,
AllocationSize: n/a

19:22:17,5168595 python.exe 4884 QueryOpen
C:\Windows\System32\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5169728 python.exe 4884 CreateFile
C:\Windows\System32\MSVCP71.dll NAME NOT FOUND Desired Access:
Read Attributes, Disposition: Open, Options: Open Reparse Point,
Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

19:22:17,5171587 python.exe 4884 QueryOpen
C:\Windows\system\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5172995 python.exe 4884 CreateFile
C:\Windows\system\MSVCP71.dll NAME NOT FOUND Desired Access: Read
Attributes, Disposition: Open, Options: Open Reparse Point, Attributes:
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

19:22:17,5174656 python.exe 4884 QueryOpen
C:\Windows\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5175761 python.exe 4884 CreateFile
C:\Windows\MSVCP71.dll NAME NOT FOUND Desired Access: Read
Attributes, Disposition: Open, Options: Open Reparse Point, Attributes:
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

19:22:17,5176883 python.exe 4884 QueryOpen
D:\Dev\aaTests\matplotlib\MSVCP71.dll NAME NOT FOUND

19:22:17,5178230 python.exe 4884 QueryOpen
C:\Windows\System32\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5179346 python.exe 4884 CreateFile
C:\Windows\System32\MSVCP71.dll NAME NOT FOUND Desired Access:
Read Attributes, Disposition: Open, Options: Open Reparse Point,
Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

19:22:17,5180831 python.exe 4884 QueryOpen
C:\Windows\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5181926 python.exe 4884 CreateFile
C:\Windows\MSVCP71.dll NAME NOT FOUND Desired Access: Read
Attributes, Disposition: Open, Options: Open Reparse Point, Attributes:
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

19:22:17,5183388 python.exe 4884 QueryOpen
C:\Windows\System32\wbem\MSVCP71.dll FAST IO DISALLOWED

19:22:17,5184455 python.exe 4884 CreateFile
C:\Windows\System32\wbem\MSVCP71.dll NAME NOT FOUND Desired
Access: Read Attributes, Disposition: Open, Options: Open Reparse
Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize:
n/a

As you can see it looks just about anywhere for MSVCP71.dll but not in
c:\Python25.

If I change the path (i.e. change the start in folder for the short cut
which starts Boa - which I use in turn to run the script) the script
runs but no output nor no errors are shown.

Just tried to run the barchart_demo.py in Python Shell (idle) and I see
the same exception as I see in Boa.

Are you able to run other matplotlib examples? Can you open a figure window?
What backend are you using, and does the problem occur with other matplotlib
backends, both GUI and non-GUI?

If I do this import in the shell:

import matplotlib.pyplot as plt

I get an error window “Unhandled exception” which allows to Abort,
Retry, Ignore. It does not provide any useful information and I can’t
find any log file either.

I normally use the “WXAgg” backend, if I run a small sample using this
I get the window error that python.exe has stopped working - again
without any exception or log file, only option is “close the program”,
I let it try and find a solution on the web (instead of cancel it) but
without anything.

I can run wxPython applications without problem, i.e. the IDE Boa or my
own shareware as long as the matplotlib code is not been executed, if I
try to bring up the frame with it then I get the python.exe has stopped
error or it just hangs.

Searching on the web I found this thread which is similar but it is
with Python 2.6.

I might try and do a Py 2.6.3 install and see if I get this to work -
don’t really want to move to 2.6 yet.
If I can provide anything else which might help to find what is
happening, please do not hesitate to ask (only thing I can’t do is
compile it here as I don’t know C++ at all.
Werner

···

mailto:werner.bruhin@…185…http://www.nabble.com/matplotlib._path-failed-on-windows-build-for-Python-2.6-td22963286.html

Installed Py 2.6.3 and I don't see the issue there, but not all libraries I use are on 2.6 yet.

So, I thought lets install Python(x, y) and give this a try, but I can't find a Python 2.5.x version of it - is this still available?

Werner

P.S.
Will totally de-install 2.5 again and try once more.

Deinstalled 2.5.4 and installed again, same issue. Deinstalled again and installed 2.5.2, both times I also deleted python25 folder.

Running barchart_demo.py directly works (c:\python25\python.exe pathto\barchart_demo.py).

Running it from within idle I get the same exception again:
Traceback (most recent call last):
  File "D:\Dev\aaTests\matplotlib\barchart_demo.py", line 3, in <module>
    import matplotlib.pyplot as plt
  File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line 6, in <module>
    from matplotlib.figure import Figure, figaspect
  File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 16, in <module>
    import artist
  File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 5, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
  File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: DLL load failed: Le module spécifié est introuvable.

Noticed that msvcp71.dll is being installed by mpl (at least that is what I see in matplotlib-wininst.log).

"cd" to the folder of the script and running it again directly with Python I see the error again.

What could cause this? Maybe one of the msvcp71.dll is incompatible with stuff already loaded by Python?

Will keep experimenting and see if I can get Boa to work with mpl

Werner

Werner F. Bruhin wrote:

Installed Py 2.6.3 and I don't see the issue there, but not all libraries I use are on 2.6 yet.

So, I thought lets install Python(x, y) and give this a try, but I can't find a Python 2.5.x version of it - is this still available?

Werner

P.S.
Will totally de-install 2.5 again and try once more.
  

I got it working by adding "C:\Python25" to the path environment variable. Works but smells very much like a work around.

Werner

From: Werner F. Bruhin [mailto:werner.bruhin@…185…]
Sent: Saturday, October 24, 2009 06:23

Installed Py 2.6.3 and I don't see the issue there, but not
all libraries I use are on 2.6 yet.

So, I thought lets install Python(x, y) and give this a try,
but I can't find a Python 2.5.x version of it - is this still
available?

Apparently: From the download page for python(x,y)
(http://www.pythonxy.com/download.php), in the "Site" column, the "Mirror 1"
link (http://ftp.ntua.gr/pub/devel/pythonxy/) took me to four releases of
python(x,y), of which two contain Python 2.5.something.

From: Werner F. Bruhin [mailto:werner.bruhin@…185…]
Sent: Saturday, October 24, 2009 09:03

I got it working by adding "C:\Python25" to the path
environment variable. Works but smells very much like a work around.

I'm glad you got things working. For what it's worth, my path contains not
only C:\Python25 but also C:\Python25\Scripts and several other
subdirectories; I don't recall adding them to the path myself, so I suspect
that python(x,y) did so during installation.