Skip to content

Missing python3-gi-cairo when installing .deb version #376

@igormcsouza

Description

@igormcsouza

When I installed the .deb version from here on my Ubuntu 24.04 and I notice the application was freezing all the time and sometimes even crashing.. I inspected the errors/logs and noticed an error popping up many times

Traceback (most recent call last):

  File "/usr/lib/webapp-manager/webapp-manager.py", line 222, in data_func_surface

    surface = Gdk.cairo_surface_create_from_pixbuf(pixbuf, self.window.get_scale_factor())

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: Couldn't find foreign struct converter for 'cairo.Surface'

I figured that when I install the GObject Introspection bridge the error got solved.. For the record here is the commands to install it...

sudo apt update
sudo apt install python3-gi-cairo

I can verify with

python3 -c "from gi.repository import Gdk; import cairo; print('Bridge is working!')"

The solution for this is to add the package as dependency of the .deb or at least document this correctly!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions