Hi, I’m having trouble snapping a wxWidgets based python app. wxWidgets relies on gtk3 from what I can tell looking at the dependencies at https://packages.ubuntu.com/focal/python3-wxgtk4.0
I was able to simplify the snapcraft.yaml file to just the python plugin (with a random source posted here) and the gnome extension, so I don’t think I’m doing anything wrong (but happy to learn if I am messing something up). Removing the gnome extension from the app makes the error about read only file system disappear.
+ snapcraftctl build + python3 -m venv /root/parts/test/install + SNAPCRAFT_PYTHON_VENV_INTERP_PATH=/root/parts/test/install/bin/python3 + pip install -U pip setuptools wheel Collecting pip Using cached pip-22.3.1-py3-none-any.whl (2.1 MB) Collecting setuptools Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB) Collecting wheel Using cached wheel-0.38.4-py3-none-any.whl (36 kB) Installing collected packages: pip, setuptools, wheel Attempting uninstall: pip Found existing installation: pip 20.0.2 Uninstalling pip-20.0.2: ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '__init__.py' Failed to build 'test'. Recommended resolution: Check the build logs and ensure the part's configuration and sources are correct. Run the same command again with --debug to shell into the environment if you wish to introspect this failure
From the following simplified build script:
name: test summary: summary description: | description version: '0.1' base: core20 confinement: strict grade: stable apps: test: command: usr/bin/python extensions: [gnome-3-38] parts: test: plugin: python source: https://github.com/psf/requests.git