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
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sergej Pupykin (sergej)
Evangelos Foutras (foutrelis)
Jakob Gruber (schuay)
Architecture All
Severity Low
Priority High
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Ignas Anikevicius (Liuuutas) - Tuesday, 12 October 2010, 06:57 GMT
By the way, I have only tested x86_64 packages, but it should be a problem for i686 as well.
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 12 October 2010, 12:57 GMT
Packages python-matplotlib, diacanvas, and python-galago-gtk must be rebuilt to take into account a change in pygtk.
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 12 October 2010, 13:00 GMT
I've taken the liberty to change the title to insist on the rebuilding of other affected packages.
Comment by Evangelos Foutras (foutrelis) - Tuesday, 12 October 2010, 16:29 GMT
I uploaded rebuilds for all three packages to [community-testing].

Just rebuilding solves the issue, right?
Comment by Ionut Biru (wonder) - Tuesday, 12 October 2010, 16:35 GMT
yes
Comment by Stefan Husmann (stefanhusmann) - Wednesday, 13 October 2010, 15:46 GMT
So can this be closed?
Comment by Ignas Anikevicius (Liuuutas) - Wednesday, 13 October 2010, 16:26 GMT
Matplotlib works as expected.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 13 October 2010, 18:34 GMT
Thanks for the confirmation.

Loading...