Zim fails to launch

So, just testing out LEAP, fresh install, setting up all my applications. Installed zim and attempted to launch, and nothing happened. So launched from a terminal, and got the following output:

tim@opensuse:~> zimTraceback (most recent call last):
  File "/usr/bin/zim", line 136, in <module>
    main()
  File "/usr/bin/zim", line 110, in main
    import zim.main
  File "/usr/lib/python3.6/site-packages/zim/main/__init__.py", line 31, in <module>
    from zim.notebook import Notebook, Path, \
  File "/usr/lib/python3.6/site-packages/zim/notebook/__init__.py", line 43, in <module>
    from .info import NotebookInfo, NotebookInfoList, \
  File "/usr/lib/python3.6/site-packages/zim/notebook/info.py", line 19, in <module>
    from .notebook import NotebookConfig, _resolve_relative_config
  File "/usr/lib/python3.6/site-packages/zim/notebook/notebook.py", line 17, in <module>
    import zim.templates
  File "/usr/lib/python3.6/site-packages/zim/templates/__init__.py", line 61, in <module>
    from zim.templates.functions import build_template_functions
  File "/usr/lib/python3.6/site-packages/zim/templates/functions.py", line 24, in <module>
    from zim.formats.html import html_encode
  File "/usr/lib/python3.6/site-packages/zim/formats/__init__.py", line 78, in <module>
    from zim.plugins import PluginManager
  File "/usr/lib/python3.6/site-packages/zim/plugins/__init__.py", line 51, in <module>
    from zim.actions import hasaction, get_actions
  File "/usr/lib/python3.6/site-packages/zim/actions.py", line 73, in <module>
    PRIMARY_MODIFIER_MASK = _get_modifier_mask()
  File "/usr/lib/python3.6/site-packages/zim/actions.py", line 68, in _get_modifier_mask
    assert Gtk
AssertionError

I remember seeing similar errors on my Tumbleweed install, but unfortunately I decided to just ignore it and come back to it there, and SOMETHING I installed since then resolved them, so I’m guessing there’s just some simple dependency that’s been missed in the package.

Hi
Tested a Leap 15.4 install here via;


devel:openSUSE:Factory:Apps/zim> osc build --alternative-project openSUSE:Leap:15.4 --clean

zypper in zim-0.74.3-0.noarch.rpm

python3-pyxdg zim

I’m on GNOME and worked fine no errors…
https://forums.opensuse.org/attachment.php?attachmentid=1100&stc=1

Screenshot from 2022-07-04 11-34-26.png

Just did a reintall due to a new SSD. Zim should have typelib-1_0-Gtk-3_0 set as a dependency, it is not, however.

Because it will install typelib-1_0-Gtk-4_0

zypper in zim
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following recommended package was automatically selected:
  gtk4-branding-openSUSE

The following 4 packages are suggested, but will not be installed:
  breezy bzr git-core mercurial

The following 19 NEW packages are going to be installed:
  gtk4-branding-openSUSE gtk4-lang gtk4-schema libcairo-script-interpreter2 libcloudproviders0 libgstplay-1_0-0 libgstplayer-1_0-0 libgtk-4-1 libharfbuzz-gobject0 libtracker-sparql-3_0-0 python3-gobject-Gdk
  python3-pyxdg typelib-1_0-GdkPixbuf-2_0 typelib-1_0-Graphene-1_0 typelib-1_0-Gtk-4_0 typelib-1_0-HarfBuzz-0_0 typelib-1_0-Pango-1_0 zim zim-lang

19 new packages to install.
Overall download size: 8.3 MiB. Already cached: 0 B. After the operation, additional 36.0 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): n

Second package I saw with that problem:

I just did 2 installs in the last week (one today) on VM’s, and neither pulled in typelib-1_0-Gtk-4_0