Note that there are some explanatory texts on larger screens.

plurals
  1. POImportError: No module named _backend_gdk
    text
    copied!<p>I am starting to get some insight into interactive plotting with python and matplotlib using pyGTK+. Therefore I took a look at the <a href="http://matplotlib.org/examples/user_interfaces/gtk_spreadsheet.html" rel="nofollow noreferrer">example given at the matplotlib website</a>.</p> <p>This is a short exerpt of the Code:</p> <pre><code>#!/usr/bin/env python """ Example of embedding matplotlib in an application and interacting with a treeview to store data. Double click on an entry to update plot data """ import pygtk pygtk.require('2.0') import gtk from gtk import gdk import matplotlib matplotlib.use('GTKAgg') # or 'GTK' from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas from numpy.random import random from matplotlib.figure import Figure </code></pre> <p>Ones I try to run this Script in the Terminal I get the following error:</p> <pre><code>Traceback (most recent call last): File "gtk_spreadsheet.py", line 15, in &lt;module&gt; from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py", line 33, in &lt;module&gt; from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_gdk.py", line 29, in &lt;module&gt; from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array ImportError: No module named _backend_gdk </code></pre> <p>I have python 2.7 and pygtk 2.24 installed.</p> <p>Can anyone figure out where the error is located? I think it might be connected to some linking issues?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload