Results 1 to 7 of 7

Thread: Python matplolib

  1. #1
    hrsvan NNTP User

    Default Python matplolib

    I've tried to make a plot using matplotlib, but the same error keeps popping up. Further I've tried some of the source-codes given at and still getting the same error message:

    $ python
    /usr/lib/python2.6/site-packages/pytz/ DeprecationWarning: the sets module is deprecated
    from sets import Set
    Traceback (most recent call last):
    File "", line 1, in <module>
    import matplotlib.pyplot as plt
    File "/usr/lib/python2.6/site-packages/matplotlib/", line 75, in <module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
    File "/usr/lib/python2.6/site-packages/matplotlib/backends/", line 25, in pylab_setup
    ImportError: No module named backend_tkagg

    It seems like I dont have the module backend_tkagg.

    So, I've installed the matplotlib-tk package, and now it is working just fine.

    So, this post is for helping others, but could somebody please tell me if they have the same problem and:
    shouldn't this package be installed together with the matplotlib package?

    I'm running opensuse 11.1, using the science repository and the languages/python repository.

  2. #2

    Default Re: Python matplolib

    I didn't have this problem in openSUSE 11.2, but with openSUSE 11.3 I had this problem, which is weird.

  3. #3

    Default Re: Python matplolib

    I also had some trouble with building matplotlib on openSUSE 11.3. I found that the package 'freetype2-devel' needs to be installed.

  4. #4

    Default Re: Python matplolib


    I am currently trying to use matplotlib to draw graphs using NetworkX library (see Overview &mdash; NetworkX v1.3 documentation). The NetworkX library runs without any problems, but when I try to import the matplot library as indicated below (see Creating a graph &mdash; NetworkX v1.3 documentation) I get a "Sementation fault".

    >>> import matplotlib.pyplot as plt
    Segmentation fault

    Anyone had the same problem ?

    My system is OpenSuse 11.3 (32 bits). The Matplotlib I currently have installed is the one of the OpenSuse Education Repository, version


    Thanks for your help,


  5. #5

    Default Re: Python matplolib


    I've solved the above problem. It seems that you need to install the corresponding numpy package. That is, the problem was that the matplotlib library is from the OpenSuse Education Repository, whereas numpy was from the OpenSuse Standard library. If you ugprade the numpy package using the one available in the OpenSuse Education repository, the problem disappears.



  6. #6

    Default Re: Python matplolib


    I faced the same problem on 11.4 x64. I could resolve it by installing the following additional packages -
    a. python-matplotlib-wx
    b. python-matplotlib-tk

  7. #7
    Join Date
    Jun 2008
    Tallinn, Estonia

    Default Re: Python matplolib

    Old thread, but still useful. Have found it through Google.

    I have got the same "ImportError: No module named backend_tkagg" on openSUSE 12.1

    As said above, solved by installing python-matplotlib-tk
    from: Index of /repositories/science

    Thanks guys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts