FS#21207 - Import of matplotlib, galago.gtk and diacanvas would fail because of change in pygtk
Attached to Project:
Community Packages
Opened by Ignas Anikevicius (Liuuutas) - Tuesday, 12 October 2010, 06:56 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 13 October 2010, 18:35 GMT
Opened by Ignas Anikevicius (Liuuutas) - Tuesday, 12 October 2010, 06:56 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 13 October 2010, 18:35 GMT
|
Details
Description:
After update to python3 (currently in testing) it is impossible to import pylab due to problems with gtk libraries used in matplotlib(?). I guess it has to do something with the gtk usage in matplotlib when showing the graph. Additional info: * package version(s) Using most up to date testing repo. * config and/or log files etc. It ends up with an error and spits that out: [...ocuments/cam_phys]$ python2 gns-ank@Archx200s[7:45] Python 2.7 (r27:82500, Oct 6 2010, 12:29:13) [GCC 4.5.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/usr/lib/python2.7/site-packages/matplotlib/pylab.py", line 259, in <module> from matplotlib.pyplot import * File "/usr/lib/python2.7/site-packages/matplotlib/pyplot.py", line 95, in <module> new_figure_manager, draw_if_interactive, show = pylab_setup() File "/usr/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py", line 10, in <module> from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py", line 27, in <module> from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gdk.py", line 29, in <module> from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array RuntimeError: could not find _PyGtk_API object >>> Steps to reproduce: open python2 or ipython and type in "import pylab" (note, that "import matplotlib" works, but "import matplotlib.pyplot" doesnt) |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Wednesday, 13 October 2010, 18:35 GMT
Reason for closing: Fixed
Wednesday, 13 October 2010, 18:35 GMT
Reason for closing: Fixed
Just rebuilding solves the issue, right?