Bug#995784: python3-gi: Please add "recommends" on "python3-cairo"
Pierre Ossman
ossman at cendio.se
Thu Jun 9 11:44:55 BST 2022
To add, this is not just to make pip happy, key functionality in GTK/GDK
is broken when python3-cairo isn't installed.
A simple example that fails:
> import gi
> gi.require_version('Gdk', '3.0')
> from gi.repository import Gdk
> from gi.repository import GdkPixbuf
> pb = GdkPixbuf.Pixbuf.new_from_file('/usr/share/pixmaps/debian-logo.png')
> s = Gdk.cairo_surface_create_from_pixbuf(pb, 1.0, None)
> print(s)
Gives you:
> Traceback (most recent call last):
> File "/home/cendio/test.py", line 6, in <module>
> s = Gdk.cairo_surface_create_from_pixbuf(pb, 1.0, None)
> TypeError: Couldn't find foreign struct converter for 'cairo.Surface'
Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
More information about the pkg-gnome-maintainers
mailing list