macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Support for Deluge on Apple Mac OS
ilikepeaches
New User
New User
Posts: 4
Joined: Sat Mar 30, 2024 10:10 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by ilikepeaches »

I haven't been able to update a whole slew of tools on my machine since May because of this issue. How is there still no app or other resolution after all this time?
tubedogg
New User
New User
Posts: 7
Joined: Mon Aug 23, 2010 2:13 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by tubedogg »

vonProteus wrote: Sun May 19, 2024 7:45 am i "fixed" it with docker

you can run deluge thin client in docker and forward x11 do mac

by adding this

Code: Select all

alias deluge-gtk-docker="xhost + $(hostname); docker run --rm -e DISPLAY=$(hostname):0 -v $HOME/.config/deluge:/home/deluge/.config/deluge -v $HOME/Downloads:/home/deluge/Downloads:ro vonproteus/deluge-gtk-docker"
to your ~/.zshrc and run it via deluge-gtk-docker

its requires docker and xquartz

this method do not use brew and its dependencies

https://github.com/vonProteus/deluge-gtk-docker
https://hub.docker.com/r/vonproteus/deluge-gtk-docker
I installed XQuartz and Docker, downloaded your container, set the alias (tried in both bash and zsh), and then ran deluge-gtk-docker. In both shells I get this and it does nothing:

Code: Select all

(deluge:11): Gtk-CRITICAL **: 06:54:37.134: _gtk_css_lookup_resolve: assertion '(((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((provider)); GType __t = ((_gtk_style_provider_private_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))' failed
/usr/lib/python3/dist-packages/deluge/ui/gtk3/queuedtorrents.py:35: Warning: g_object_set_data_full: assertion 'G_IS_OBJECT (object)' failed
  self.builder.add_from_file(

(deluge:11): Gtk-ERROR **: 06:54:37.134: Can't create a GtkStyleContext without a display connection
/home/deluge/docker-entrypoint.sh: line 5:    11 Trace/breakpoint trap   /usr/bin/deluge-gtk "$@"
Any ideas?
User avatar
vonProteus
New User
New User
Posts: 9
Joined: Mon Apr 20, 2020 2:48 pm

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by vonProteus »

can you try

Code: Select all

xhost + $(hostname); docker run --rm -e DISPLAY=192.168.172.149:0 -v $HOME/.config/deluge:/home/deluge/.config/deluge -v $HOME/Downloads:/home/deluge/Downloads:ro vonproteus/deluge-gtk-docker
where 192.168.172.149 is ip of your computer
Lord-Kamina
Member
Member
Posts: 20
Joined: Sun Dec 22, 2019 4:24 pm

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by Lord-Kamina »

This should already be solved. The problemas is not deluge, but a bug in glib2. A fix for that should have landed in version 2.82.0
tubedogg
New User
New User
Posts: 7
Joined: Mon Aug 23, 2010 2:13 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by tubedogg »

vonProteus wrote: Fri Sep 06, 2024 11:09 am can you try

Code: Select all

xhost + $(hostname); docker run --rm -e DISPLAY=192.168.172.149:0 -v $HOME/.config/deluge:/home/deluge/.config/deluge -v $HOME/Downloads:/home/deluge/Downloads:ro vonproteus/deluge-gtk-docker
where 192.168.172.149 is ip of your computer
Thanks for the quick response but same error
Last edited by tubedogg on Fri Sep 06, 2024 5:38 pm, edited 1 time in total.
tubedogg
New User
New User
Posts: 7
Joined: Mon Aug 23, 2010 2:13 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by tubedogg »

Lord-Kamina wrote: Fri Sep 06, 2024 3:30 pm This should already be solved. The problemas is not deluge, but a bug in glib2. A fix for that should have landed in version 2.82.0
https://formulae.brew.sh/formula/glib says Homebrew is still on 2.80.4. Not sure what causes them to/when they update.
ilikepeaches
New User
New User
Posts: 4
Joined: Sat Mar 30, 2024 10:10 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by ilikepeaches »

tubedogg wrote: Fri Sep 06, 2024 5:38 pmhttps://formulae.brew.sh/formula/glib says Homebrew is still on 2.80.4. Not sure what causes them to/when they update.
Someone has to make PR updating the formula definition, I believe.

https://docs.brew.sh/How-To-Open-a-Home ... ll-Request
ilikepeaches
New User
New User
Posts: 4
Joined: Sat Mar 30, 2024 10:10 am

Re: macOS 14.4.1 problem with 'gi.repository.Gio' object has no attribute 'content_type_get_icon'

Post by ilikepeaches »

I unpinned, got six months of updates that'd been held back, and then re-followed these instructions (through "Install Deluge"):

viewtopic.php?t=56287

My stuff is updated, and my Deluge works.
Post Reply