python3-gi doesn't depend on python3-cairo

Bug #1978098 reported by Pierre Ossman (Cendio AB)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pygobject (Ubuntu)
New
Low
Unassigned

Bug Description

There is a missing dependency that makes using GTK/GDK from Python a bit brittle.

GTK/GDK uses cairo for drawing, so having GTK/GDK means that cairo is available and can be used.

However, having the Python bindings for GTK/GDK currently doesn't guarantee that the Python bindings for cairo are installed. Hence, drawing functions can explode when Python GTK applications try to use them. In the Red Hat world, this dependency is on pygobject, hence I'm filing a bug to add the same thing here.

Upstream report for the same thing on Debian:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995784

(also includes a simple example)

Revision history for this message
Sebastien Bacher (seb128) wrote (last edit ):

Thank you for your bug report. It's a bit complicated though, python-gi isn't only used for gtk bindings nor graphical ones, so it seems the wrong place for the depends. Perhaps the gir binary for gtk should have it?

Changed in pygobject (Ubuntu):
importance: Undecided → Low
Revision history for this message
Pierre Ossman (Cendio AB) (ossman) wrote :

Possibly. But it has a similar problem. The typelib is not just for Python.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.