Skip to content

In Ubuntu 24.04.2: Namespace WebKit2 not available for version 4.0 #21

@akwala

Description

@akwala
$ typecatcher
Traceback (most recent call last):
  File "/home/aslam/.local/bin/typecatcher", line 46, in <module>
    import typecatcher
  File "/var/ak/dev/workspace/github/_forks/typecatcher/typecatcher/__init__.py", line 21, in <module>
    from typecatcher_lib import Application
  File "/var/ak/dev/workspace/github/_forks/typecatcher/typecatcher_lib/Application.py", line 19, in <module>
    from typecatcher import TypeCatcherWindow
  File "/var/ak/dev/workspace/github/_forks/typecatcher/typecatcher/TypeCatcherWindow.py", line 22, in <module>
    gi.require_version('WebKit2', '4.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 125, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace WebKit2 not available for version 4.0

This happens with other applications too. E.g., tauri-app – the suggested workaround is not possible in Ubuntu 24.04.2:

The following packages have unmet dependencies:
 libwebkit2gtk-4.0-dev : Depends: libwebkit2gtk-4.0-37 (= 2.36.0-2ubuntu1) but 2.48.0-0ubuntu0.22.04.1 is to be installed
                         Depends: gir1.2-webkit2-4.0 (= 2.36.0-2ubuntu1) but it is not going to be installed
                         Depends: libjavascriptcoregtk-4.0-dev (= 2.36.0-2ubuntu1) but 2.48.0-0ubuntu0.22.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions