You are not logged in.

#1 2023-05-23 20:42:38

fabrixx
Member
From: Italy
Registered: 2015-06-07
Posts: 110

[solved] gnome-tweaks error

After today's update I can no longer open GNOME Tweaks

Traceback (most recent call last):
  File "/usr/bin/gnome-tweaks", line 14, in <module>
    gi.require_version("Gtk", "3.0")
    ^^^^^^^^^^^^^^^^^^
AttributeError: module 'gi' has no attribute 'require_version'

Last edited by fabrixx (2023-05-23 21:38:34)

Offline

#2 2023-05-23 21:06:44

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [solved] gnome-tweaks error

pacman -Qs python-gobject
pacman -Qikk $(pacman -Qsq python-gobject)

Offline

#3 2023-05-23 21:30:57

fabrixx
Member
From: Italy
Registered: 2015-06-07
Posts: 110

Re: [solved] gnome-tweaks error

[fabrixx@archlinux ~]$ pacman -Qs python-gobject
local/python-gobject 3.44.1-3
    Python Bindings for GLib/GObject/GIO/GTK+
[fabrixx@archlinux ~]$ pacman -Qs python-gobject
local/python-gobject 3.44.1-3
    Python Bindings for GLib/GObject/GIO/GTK+
[fabrixx@archlinux ~]$ pacman -Qikk $(pacman -Qsq python-gobject)
Name                      : python-gobject
Version                 : 3.44.1-3
Description             : Python Bindings for GLib/GObject/GIO/GTK+
Architecture            : x86_64
URL                       : https://wiki.gnome.org/Projects/PyGObject
License                  : LGPL
Groups                   : Nessuno
Provides                  : pygobject-devel=3.44.1
Depend on              : gobject-introspection-runtime  python
Optional dependencies      : cairo: Cairo bindings [installato]
Requested by              : alacarte  blanket  blueberry  blueprint-compiler  bluetooth-autoconnect  d-feet  deluge-gtk  gedit
                            gnome-browser-connector  gnome-code-assistance  gnome-music  gnome-network-displays-git
                            gnome-tweaks  gst-python  ibus  malcontent  python-atspi  python-dbusmock  python-nautilus  totem
Optional for             : avahi  glade  gpsd  libgit2-glib  libpeas  lirc  power-profiles-daemon
Conflicts with             : pygobject-devel
Substitute              : pygobject-devel<=3.36.1-1
Space required         : 1503,82 KiB
Packer          : Felix Yan <felixonmars@archlinux.org>
Creation date         : lun 10 apr 2023, 13:11:02
Date of installation     : mar 23 mag 2023, 23:15:45
Reason for installation : Installato esplicitamente
install    script     : No
Validated by           : Sign

python-gobject: 101 files total, 0 files altered


After reinstalling python-gobject i've a new error:

[fabrixx@archlinux ~]$ gnome-tweaks
Traceback (most recent call last):
  File "/usr/bin/gnome-tweaks", line 18, in <module>
    from gtweak.defs import VERSION, APP_ID
ModuleNotFoundError: No module named 'gtweak.defs'

edit: fixed uninstalling python2 from AUR & reinstalling gnome-tweaks

Last edited by fabrixx (2023-05-23 21:38:14)

Offline

Board footer

Powered by FluxBB