Indeed, this specific snap seems to be removing lots of libraries, including usr/lib/python*/tkinter
. Yet I was able to find quite a few examples that appear to be working, for example:
- Tkinter missing from Python stdlib
- Error allocating font with tcl/tk
- The tcltk-launch stage snap
- pandastable
- Foriegn keyboard support for Tkinter snaps
- I18N and Tkinter
What they seem to have in common at first sight:
stage-packages: [python3-tk,fontconfig-config,fonts-dejavu-extra]
plugs: [desktop, home, x11, unity7]
I don’t really have prior experience with Python/Tkinter snaps as you have probably understood by now - an I’m sorry about that - yet it may be worth starting from these examples.
This works:
https://github.com/DimitriPapadopoulos/snapcraft-tkinter