Hello everyone! I’ve tried to create snaps for a few months now, but I think there is a hurdle I cannot cross right now. I’ve developed an application using WxPython that is supposed to play audio and video files when the user wants to.
Here’s my snapcraft.yaml currently:
grade: stable
confinement: strict
base: core18
apps:
my-app:
command: python3 $SNAP/src/my-app.py
extensions: [gnome-3-28]
plugs:
- home
parts:
source-copy:
plugin: dump
source: .
my-app:
plugin: python
python-version: python3
source: .
stage-packages:
- libssl-dev
- libjpeg-dev
- libtiff-dev
- libsdl1.2-dev
- libnotify-dev
- freeglut3
- ibus-gtk3
- libwebkitgtk-3.0-0
- zlib1g
- libsm6
- libpulse0
- libslang2
- libsdl1.2debian
- python3-wxgtk4.0
- python3-wxgtk-media4.0
- libgstreamer1.0-0
- libgstreamer-plugins-base1.0-0
When I use this, the snap is created without much problem, but this warning appears:
This part is missing libraries that cannot be satisfied with any available stage-packages known to snapcraft:
- libgpm.so.2
These dependencies can be satisfied via additional parts or content sharing. Consider validating configured filesets if this dependency was built.
For a while, I was just ignoring this warning, since my application was still working, but when I try to use wx-media, the program tries to find libgpm.so.2, but is unable to. The exact warning:
Failed to load plugin '/snap/my-app/x1/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstaasink.so': libgpm.so.2: cannot open shared object file: No such file or directory
I’ve tried to add a lot of different stage packages in order to fix the problem, but so far I found nothing. If anyone has an idea to fix this problem, don’t hesitate to share it here. Thank you for reading this.