You are not logged in.

#1 2024-04-11 10:39:26

bach
Member
Registered: 2014-10-20
Posts: 27

[solved] terminator wont launch, python-gobject issue

Hi,

since last update terminator wont launch with this message

$ terminator 
You need to install the python bindings for gobject, gtk and pango to run Terminator.

gtimelog neether

$ gtimelog 
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gi/importer.py", line 139, in create_module
    introspection_module = get_introspection_module(namespace)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/module.py", line 267, in get_introspection_module
    module = IntrospectionModule(namespace, version)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/module.py", line 114, in __init__
    repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'GObject', version '2.0' not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/gtimelog", line 33, in <module>
    sys.exit(load_entry_point('gtimelog==0.11.3', 'gui_scripts', 'gtimelog')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/gtimelog", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/gtimelog/main.py", line 64, in <module>
    from gi.repository import Gtk, Gdk, GLib, Gio, GObject, Pango, Soup
  File "/usr/lib/python3.11/site-packages/gi/importer.py", line 141, in create_module
    raise ImportError(e)
ImportError: Typelib file for namespace 'GObject', version '2.0' not found

i tried to reinstall and downgrade python-gobject without success

i'm running out of ideas here

my pacman.conf

#[core-testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

#[extra-testing]
#Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community-testing]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib-testing]
Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Last edited by bach (2024-04-11 19:00:07)

Offline

#2 2024-04-11 13:56:49

seth
Member
Registered: 2012-09-03
Posts: 59,745

Re: [solved] terminator wont launch, python-gobject issue

pacman -Qikk terminator python-gobject gobject-introspection-runtime

Offline

#3 2024-04-11 15:18:31

bach
Member
Registered: 2014-10-20
Posts: 27

Re: [solved] terminator wont launch, python-gobject issue

$ pacman -Qikk terminator python-gobject gobject-introspection-runtime
Nom                      : terminator
Version                  : 2.1.3-3
Description              : Terminal emulator that supports tabs and grids
Architecture             : any
URL                      : https://github.com/gnome-terminator/terminator
Licences                 : GPL2
Groupes                  : --
Fournit                  : --
Dépend de                : gsettings-desktop-schemas  libkeybinder3  libnotify  python-cairo  python-configobj  python-dbus  python-psutil  python-gobject  vte3  xdg-utils
Dépendances opt.         : --
Requis par               : --
Optionnel pour           : --
Est en conflit avec      : --
Remplace                 : --
Taille installée         : 3,22 MiB
Paqueteur                : Antonio Rojas <arojas@archlinux.org>
Compilé le               : sam. 06 mai 2023 00:32:37
Installé le              : jeu. 11 avril 2024 09:32:31
Motif d’installation     : Explicitement installé
Script d’installation    : Non
Validé par               : Signature

terminator : 513 fichiers au total, 0 fichier modifié
Nom                      : python-gobject
Version                  : 3.48.1-2
Description              : Python bindings for GLib/GObject/GIO/GTK
Architecture             : x86_64
URL                      : https://wiki.gnome.org/Projects/PyGObject
Licences                 : LGPL-2.1-or-later
Groupes                  : --
Fournit                  : pygobject-devel=3.48.1
Dépend de                : gobject-introspection-runtime  python
Dépendances opt.         : cairo: Cairo bindings [installé]
Requis par               : gst-python  gtimelog  ibus  inkscape  libibus  openrazer-daemon  polychromatic  python-nbxmpp  soundconverter  terminator
Optionnel pour           : alsa-tools  avahi  dbus-python  lirc  python-matplotlib
Est en conflit avec      : pygobject-devel
Remplace                 : pygobject-devel<=3.36.1-1
Taille installée         : 1503,05 KiB
Paqueteur                : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Compilé le               : sam. 23 mars 2024 16:39:44
Installé le              : jeu. 11 avril 2024 12:29:28
Motif d’installation     : Installé comme dépendance d’un autre paquet
Script d’installation    : Non
Validé par               : Signature

python-gobject : 101 fichiers au total, 0 fichier modifié
Nom                      : gobject-introspection-runtime
Version                  : 1.80.1-1
Description              : Introspection system for GObject-based libraries - runtime
Architecture             : x86_64
URL                      : https://wiki.gnome.org/Projects/GObjectIntrospection
Licences                 : GPL-2.0-or-later  LGPL-2.0-or-later
Groupes                  : --
Fournit                  : --
Dépend de                : libgirepository=1.80.1-1
Dépendances opt.         : --
Requis par               : inkscape  python-gobject
Optionnel pour           : liblangtag
Est en conflit avec      : --
Remplace                 : --
Taille installée         : 77,91 KiB
Paqueteur                : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Compilé le               : lun. 01 avril 2024 17:03:09
Installé le              : mer. 10 avril 2024 12:03:50
Motif d’installation     : Installé comme dépendance d’un autre paquet
Script d’installation    : Non
Validé par               : Signature

gobject-introspection-runtime : 16 fichiers au total, 0 fichier modifié

Offline

#4 2024-04-11 15:29:05

seth
Member
Registered: 2012-09-03
Posts: 59,745

Re: [solved] terminator wont launch, python-gobject issue

Broken glib2?

pacman -Qikk glib2

Offline

#5 2024-04-11 18:59:22

bach
Member
Registered: 2014-10-20
Posts: 27

Re: [solved] terminator wont launch, python-gobject issue

$ pacman -Qikk glib2
Nom                      : glib2
Version                  : 2.80.0-2
Description              : Low level core library
Architecture             : x86_64
URL                      : https://gitlab.gnome.org/GNOME/glib
Licences                 : LGPL-2.1-or-later
Groupes                  : --
Fournit                  : libglib-2.0.so=0-64  libgio-2.0.so=0-64  libgirepository-2.0.so=0-64  libgmodule-2.0.so=0-64  libgobject-2.0.so=0-64  libgthread-2.0.so=0-64
Dépend de                : libffi  libsysprof-capture  pcre2  util-linux-libs  zlib  libffi.so=8-64  libmount.so=1-64
Dépendances opt.         : gvfs: most gio functionality [installé]
libelf: gresource inspection tool [installé]
python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report [installé]
python-packaging: gdbus-codegen [installé]
Requis par               : accountsservice  amsynth  appstream  appstream-qt  appstream-qt5  ardour  at-spi2-core  avahi  bitlbee  bluez  bluez-utils  cairo  calf  dbus-c++  dbus-glib  dbus-python  dconf
ddcutil  deskreen-bin  desktop-file-utils  digikam  discover  easytag  enchant  epiphany  ffmpeg  fluidsynth  ganv  gcab  gcr-4  gdk-pixbuf2  gegl  ghostscript  gimp  gimp-plugin-gmic
glib-networking  glibmm  gnome-keyring  graphene  gsettings-desktop-schemas  gspell  gssdp  gstreamer  gtk-update-icon-cache  gtk3  gtk4  gts  gupnp  gupnp-igd  gutenprint  harfbuzz
hexchat  ibus  imagemagick  inkscape  json-glib  kde-gtk-config  lensfun  lib2geom  lib32-glib2  libaccounts-glib  libaccounts-qt  libadwaita  libblockdev  libblockdev-crypto
libblockdev-fs  libblockdev-loop  libblockdev-mdraid  libblockdev-nvme  libblockdev-part  libblockdev-swap  libcheese  libcloudproviders  libcolord  libdbusmenu-glib  libgexiv2
libgirepository  libgnome-keyring  libgudev  libgusb  libibus  libical  libinstpatch  liblangtag  liblqr  libmanette  libmbim  libmm-glib  libmypaint  libnice  libnm  libnotify
libportal  libproxy  libqrtr-glib  libreoffice-fresh  librsvg  libsecret  libsoup  libsoup3  libspeechd  libwacom  libwebsockets  libxmlb  modemmanager  opencv  passim  patchage
pavucontrol  pinentry  pipewire  plasma-nm  plasma-pa  polkit  polkit-qt5  polkit-qt6  poppler-glib  profanity  qt6-base  qt6-webengine  qtkeychain-qt5  qtkeychain-qt6  sane
shared-mime-info  signal-desktop  signon-ui  tracker3  udisks2  upower  vlc  volume_key  vte3  webkit2gtk  webkitgtk-6.0  wpebackend-fdo  wxwidgets-common  wxwidgets-gtk3
xdg-dbus-proxy  xdg-desktop-portal
Optionnel pour           : libpulse  mlt  plasma-desktop  suil
Est en conflit avec      : --
Remplace                 : --
Taille installée         : 37,69 MiB
Paqueteur                : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Compilé le               : jeu. 21 mars 2024 00:04:09
Installé le              : ven. 22 mars 2024 09:57:36
Motif d’installation     : Installé comme dépendance d’un autre paquet
Script d’installation    : Non
Validé par               : Signature

avertissement : glib2: /usr/lib/girepository-1.0/GLib-2.0.typelib (Aucun fichier ou dossier de ce nom)
avertissement : glib2: /usr/lib/girepository-1.0/GModule-2.0.typelib (Aucun fichier ou dossier de ce nom)
avertissement : glib2: /usr/lib/girepository-1.0/GObject-2.0.typelib (Aucun fichier ou dossier de ce nom)
avertissement : glib2: /usr/lib/girepository-1.0/Gio-2.0.typelib (Aucun fichier ou dossier de ce nom)

yes !!!

sudo pacman -S glib2

problem solved, thanks seth !!!

Offline

#6 2024-04-14 07:55:32

nanawel
Member
Registered: 2012-05-07
Posts: 89
Website

Re: [solved] terminator wont launch, python-gobject issue

My 2 cents: same problem here after upgrading yesterday. I could not run asbru-cm nor kupfer anymore with a similar error message.

perl :

Typelib file for namespace 'GObject', version '2.0' not found at /usr/lib/perl5/5.38/vendor_perl/Glib/Object/Introspection.pm line 108.

python :

ImportError: Typelib file for namespace 'GObject', version '2.0' not found

glib2 was indeed broken here also. Reinstalling the package solved the issue.

Offline

Board footer

Powered by FluxBB