In an attempt to isolate my problems with snaps, I’ve made a snap just to test a helloworld program with python3 and Gtk3 on wayland.
The program only opens a window. I get this when running the snap:
/snap/hellowayland/x1/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /snap/hellowayland/x1/lib/x86_64-linux-gnu/libsystemd.so.0)
python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python3)
my snap file:
name: hellowayland
version: 'master'
summary: Test python3 with gtk3 in a snap on wayland
description: |
This snap tests a helloworld program written in python3 and Gtk3 on Wayland
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
hellowayland:
command: desktop-launch $SNAP/bin/hellowayland
plugs: [x11, unity7, wayland, desktop]
parts:
hellowayland:
source: .
# See 'snapcraft plugins'
plugin: python
stage-packages:
- python3-gi
- libcanberra-gtk3-module
- gir1.2-gtk-3.0
after: [desktop-gtk3]
full source is here: https://github.com/lapisdecor/hellowayland
What dependencies am I missing? I tried putting libc6 on stage-packages but snapcraft gives-me a permission error when building:
PermissionError: [Errno 1] Operation not permitted: '/home/luis/Programar/hellowayland/hellowayland/parts/hellowayland/install/lib64/ld-linux-x86-64.so.2