There are existing threads regarding this issue, but no solution yet, so I decided to create a new topic to spark a discussion again.
Here is my snapcraft.yaml:
name: chrono # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: '1.3.6' # just for humans, typically '1.2+git' or '1.3.2'
summary: Process automation tool # 79 char long summary
description: |
Chrono is a process automation tool that frees people’s time from repetitive tasks, with its 1-click record & play features.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
chrono:
# See 'snapcraft plugins'
plugin: dump
source: https://cronumax-website.s3.ap-east-1.amazonaws.com/chrono.tar.xz
apps:
chrono:
extensions: [gnome]
command: chrono
Run:
snapcraft
sudo snap install chrono_1.3.6_amd64.snap --devmode --dangerous
chrono
Result:
[pywebview] GTK cannot be loaded
Traceback (most recent call last):
File "webview/guilib.py", line 16, in import_gtk
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "webview/platforms/gtk.py", line 28, in <module>
File "gi/__init__.py", line 126, in require_version
ValueError: Namespace WebKit2 not available
[pywebview] QT cannot be loaded
Traceback (most recent call last):
File "webview/guilib.py", line 29, in import_qt
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "webview/platforms/qt.py", line 34, in <module>
ModuleNotFoundError: No module named 'qtpy'
Traceback (most recent call last):
File "main.py", line 2614, in <module>
File "webview/__init__.py", line 129, in start
File "webview/guilib.py", line 93, in initialize
webview.util.WebViewException: You must have either QT or GTK with Python extensions installed in order to use pywebview.
[17218] Failed to execute script 'main' due to unhandled exception!
What should I do?