← Back to issue list

pygtk apps fail with gnome-3-34 extension

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1893262
Type
issue
State
open
Author
~ken-vandine
Labels
Created
2020-08-27 19:00:54.702781+00:00
Updated
2023-01-20 03:45:08.635449+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

For reference: https://forum.snapcraft.io/t/gnome-3-34-extension-and-python-segfault/19650 The gnome-3-34-1804 content snap includes a python3 interpreter. For snaps that build python parts there is another python3 interpreter bundled as well. At runtime the bundled interpreter doesn't seem to be compatible with the version of python the modules were built with. This can be worked around with a combination of build-environment and environment. Here's an excerpt: apps: app: environment: PATH: $SNAP_DESKTOP_RUNTIME/usr/bin:$PATH PYTHONPATH: $PYTHONPATH:$SNAP_DESKTOP_RUNTIME/usr/lib/python3.6/site-packages:$SNAP/usr/lib/python3.6/site-packages:$SNAP/lib/python3.6/site-packages ... parts: part: plugin: meson source: . build-environment: - PATH: /snap/gnome-3-34-1804-sdk/current/usr/bin:$PATH ...

Evaluation history

No evaluation history available.