AltLinux icon indicating copy to clipboard operation
AltLinux copied to clipboard

gobject `GtkCheckMenuItem' doesn't support property `label' (NixOS)

Open n3rsti opened this issue 3 months ago • 0 comments

System: NixOS - unstable branch

  File "/home/n3rsti/repo/althea/main.py", line 69, in <module>
    command_six = Gtk.CheckMenuItem(label="Launch at Login")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/f7plw7g4g7gj6bgfsqczb9ry6zfi37hm-python3.12-pygobject-3.50.0/lib/python3.12/site-packages/gi/overrides/__init__.py", line 313, in new_init
    return super_init_func(self, **new_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gobject `GtkCheckMenuItem' doesn't support property `label'
 althea (main) ✗ pip3 freeze
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
cryptography==44.0.2
idna==3.10
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jeepney==0.9.0
keyring==25.6.0
more-itertools==10.6.0
packaging==24.2
pycairo==1.27.0
pycparser==2.22
PyGObject==3.50.0
requests==2.32.3
SecretStorage==3.3.3
six==1.17.0
urllib3==2.3.0

LLMs said that it might be because of PyGObject 3.50, but I don't really trust them and I'm not really sure. It worked before so i suspect that it might be because of some new package? I run nixos unstable branch, but i also tried those packages with older branch in nix-shell:

    pkgs.binutils
    pkgs.wget
    pkgs.curl
    pkgs.git
    pkgs.python3
    pkgs.python3Packages.pip
    pkgs.python3Packages.requests
    pkgs.python3Packages.pygobject3
    pkgs.python3Packages.keyring
    pkgs.python3Packages.packaging
    pkgs.libappindicator-gtk3
    pkgs.usbmuxd
    pkgs.libimobiledevice
    pkgs.avahi
    pkgs.avahi-compat
    pkgs.zlib
    pkgs.unzip
    pkgs.usbutils
    pkgs.psmisc
    pkgs.libhandy
    pkgs.libnotify
    pkgs.gobject-introspection

it didn't help. I tried manually fixing the bugs, but 1 error fixed led to another and so on. If I get confirmation from @vyvir that it's because of new package and I will have time then maybe I can try to fix them all and submit PR, but for now I hope there is an easier override.

n3rsti avatar Oct 02 '25 17:10 n3rsti