Public bug reported:

Binary package hint: python-matplotlib

In Hardy, apt-get install python-matlibplot.

Then type: python -c "import pylab"
You get the result:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 292, in 
<module>
    from matplotlib.pyplot import *
  File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 37, in 
<module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/__init__.py", line 
24, in pylab_setup
    globals(),locals(),[backend_name])
  File 
"/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 
10, in <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, 
FigureCanvasGTK,\
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py", 
line 7, in <module>
    import gtk; gdk = gtk.gdk
ImportError: No module named gtk


To fix the problem, you need to apt-get install python-gtk2. You can then 
import pylab successfully.

** Affects: matplotlib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Missing python-gtk2 dependency
https://bugs.launchpad.net/bugs/223067
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to