flathub / cz.zeropage.Formiko

https://flathub.org/apps/details/cz.zeropage.Formiko
1 stars 2 forks source link

Fails to start after runtime update #6

Closed wjt closed 1 year ago

wjt commented 1 year ago

An Endless OS user reported on our forum that this app stopped working in the past few weeks.

I can reproduce this: it crashes immediately on startup as follows:

wjt@camille:~$ cz.zeropage.Formiko 
Traceback (most recent call last):
  File "/app/bin/formiko", line 33, in <module>
    sys.exit(load_entry_point('formiko==1.4.3', 'gui_scripts', 'formiko')())
  File "/app/bin/formiko", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/app/lib/python3.10/site-packages/formiko/main.py", line 11, in <module>
    from formiko.application import Application
  File "/app/lib/python3.10/site-packages/formiko/application.py", line 10, in <module>
    from formiko.window import AppWindow
  File "/app/lib/python3.10/site-packages/formiko/window.py", line 15, in <module>
    from formiko.renderer import Renderer, EXTS, WebView as GtkWebView
  File "/app/lib/python3.10/site-packages/formiko/renderer.py", line 5, in <module>
    require_version('WebKit2', '4.0')   # noqa
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace WebKit2 not available for version 4.0

This is almost certainly a result of #5 though I haven't tested older builds.

bbhtt commented 1 year ago

Thank you. This was my mistake. I saw the patch https://github.com/ondratu/formiko/commit/1b3449e542b6ddaf78d4d7010fee734bcb7e95c1 but I didn't notice that the last release was much older. Runtime 44 doesn't have webkit2gtk-4.0, it has only webkit2gtk-4.1 and webkitgtk-6.0. Should be fixed with https://github.com/flathub/cz.zeropage.Formiko/pull/7.