FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TclErro : could not open matplotlib.gif · Issue #5388 · matplotlib/matplotlib · GitHub

TclErro : could not open matplotlib.gif #5388

Closed

Description

Hi everyone, I used matplotlib in my project but I encounted a problem and I can't know what happend exactly. Here is my command line:

App\python.exe file\contour.py "C:\Documents and Settings\fanping\桌面\FOR3D_PARALLEL\print.out" 0 15000

and when I excuted, I got an error:

    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: 
couldn't open "C:\Documents and Settings\fanping\桌面\FOR3D_PARALLEL\程序源码\PFOR3D\Release\For3D_Demo\PortablePython\App\lib\site-packages\matplotlib\mpl-data\images\matplotlib.gif":
no such file or directory

current directory is

C:\Documents and Settings\fanping\桌面\FOR3D_PARALLEL\程序源码\PFOR3D\Release\For3D_Demo\PortablePython>

I used this in Portable Python whose python version is 2.7.6 and the matplotlib version is 1.3.1. Actually I got a result when the environment path does not have any Chinese charactors. eg. C:\PortablePython\

looking forward to any solution

Activity

  1. mdboom commented on Nov 3, 2015

    Member

    C:\Documents and Settings\fanping\桌面\FOR3D_PARALLEL\程序源码\PFOR3D\Release\For3D_Demo\PortablePython\App\lib\site-packages\matplotlib\mpl-data\images\matplotlib.gif

    should exist -- it is distributed as part of matplotlib. One of the ways this sometimes happens is if you install one version of matplotlib on top of another. You could try deleting C:\Documents and Settings\fanping\桌面\FOR3D_PARALLEL\程序源码\PFOR3D\Release\For3D_Demo\PortablePython\App\lib\site-packages\matplotlib\ and reinstalling matplotib or reinstalling your Python environment.

  2. zsynacl commented on Nov 4, 2015

    Author

    Hey, mdboom, thanks for your comment. But I think there maybe some misunderstanding.
    I didn't install any other version of matplotlib and I also checked the file matplotlib.gif, it does exist. I didn't change any thing of matplotlib.

  3. mdboom commented on Nov 4, 2015

    Member

    How did you install matplotlib? Whatever method you used seems to have missed that file.

  4. zsynacl commented on Nov 4, 2015

    Author

    nope, I used portable python. I ensure that the file matplotlib.gif is just there.

  5. tacaswell commented on Nov 4, 2015

    Member

    I used this in Portable Python whose python version is 2.7.6 and the matplotlib version is 1.3.1. Actually I got a result when the environment path does not have any Chinese charactors. eg. C:\PortablePython\

    looking forward to any solution

    Might this be a bug in tk? Using conda + python3 + non-ascii path it works correctly, but trying to to the same thing with python2 gives me errors even starting up python.

    Can you try with any python 3.4 or 3.5?

  6. zsynacl commented on Nov 4, 2015

    Author

    hey tacaswell, I can't control the environment. Maybe I should just suggest the user to use English-only path...

  7. anntzer commented on Jan 3, 2019

    Contributor

    matplotlib.gif no longer exists since #5626.

  8. added this to the v2.0.0 milestone on Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL