Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to go through the simple-player tutorial. Everything seems okay, after resolving the gtk.RESPONSE_OK and quickly.prompts problems, I reach the part where one starts messing around with goocanvas.

Unfortunately, import goocanvas causes $ quickly run to throw:

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size
  from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
  from gtk import _gtk

After which the application exits.

With the other errors, it suggests to me that the tutorial and the goocanvas library are both out of date and not cooperating with the new gtk+3/gobject stuff. If this is the case, could someone please refer me to alternatives? Many thanks in advance.

I am running 64 bit Ubuntu 12.04 LTS.

share|improve this question

closed as too localized by jokerdino, izx, hbdgaf, Mitch, jrg Jul 12 '12 at 14:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Try:

from gi.repository import GooCanvas

This should allow you to import the new GooCanvas. As for an alternative, not found one yet.

share|improve this answer
    
The best I've come up with is to use cairo and a GtkDrawArea. –  Quasiperfect Jul 12 '12 at 8:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.