tophat icon indicating copy to clipboard operation
tophat copied to clipboard

Preferences page crashes on Fedora 40

Open OskarTDI opened this issue 1 year ago • 13 comments

The settings of extension [email protected] had an error:

Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
  require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28
  @gi://Clutter/:3:25
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34


![Bildschirmfoto vom 2024-07-28 10-43-10](https://github.com/user-attachments/assets/13b213b9-5a98-4429-944b-96ffc6057897)
![Bildschirmfoto vom 2024-07-28 10-46-57](https://github.com/user-attachments/assets/2d38d9cf-308c-40c9-9fbb-90add7ce0a22)

![Bildschirmfoto vom 2024-07-28 10-48-56](https://github.com/user-attachments/assets/e86a920b-3665-420d-b26b-95a6861efc09)

OskarTDI avatar Jul 28 '24 08:07 OskarTDI

Doing a sudo dnf install cutter did solve the problem for me

flurdy avatar Jul 29 '24 01:07 flurdy

cslab@fedora-eloov0c:~$ sudo dnf install cutter [sudo] Password for cslab: Last check for expired metadata: before 0:01:24 on Mon 29 Jul 2024 06:46:31 CEST. No match for arguments: cutter Error: No match found: cutter

cslab@fedora-eloov0c:~$ sudo dnf install cutter [sudo] Passwort für cslab: RPM Fusion for Fedora 40 - Nonfree 160 kB/s | 69 kB 00:00
RPM Fusion for Fedora 40 - Nonfree - Updates 51 kB/s | 21 kB 00:00
No match for arguments: cutter Error: No match found: cutter

OskarTDI avatar Jul 29 '24 04:07 OskarTDI

same issu faced on ubutnu Screenshot from 2024-07-30 21-38-42

sarowarhosen03 avatar Jul 30 '24 15:07 sarowarhosen03

Same

The settings of extension [email protected] had an error:

Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
  require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28
  @gi://Clutter/:3:25
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
  

trying to install clutter does not work.

ryd3v avatar Jul 30 '24 23:07 ryd3v

Same problem in Debian Trixie (current testing) and Gnome 46

I solved the problem by installing the package gir1.2-gtkclutter-1.0:

  • apt install gir1.2-gtkclutter-1.0
  • logout from the current Gnome session

I got the solution from a similar issue: https://github.com/yozoon/gnome-shell-extension-blyr/issues/21

I guess there may be an equivalent package for Fedora et al.

juanlufont avatar Jul 31 '24 10:07 juanlufont

Same problem in Debian Trixie (current testing) and Gnome 46

I solved the problem by installing the package gir1.2-gtkclutter-1.0:

  • apt install gir1.2-gtkclutter-1.0
  • logout from the current Gnome session

I got the solution from a similar issue: yozoon/gnome-shell-extension-blyr#21

I guess there may be an equivalent package for Fedora et al.

This won't work for Fedora though ...

ryd3v avatar Aug 01 '24 05:08 ryd3v

Doing a sudo dnf install cutter did solve the problem for me

isn't clutter and cutter 2 different packages?

ryd3v avatar Aug 01 '24 05:08 ryd3v

sudo dnf install clutter.x86_64 has fixed it for me.

[~]$ dnf search clutter

ryd3v avatar Aug 01 '24 05:08 ryd3v

Doing a sudo dnf install clutter.x86_64 did solve the problem for me. Thank you

OskarTDI avatar Aug 01 '24 15:08 OskarTDI

sudo apt install gir1.2-gtkclutter-1.0 solved it for me on Ubuntu 24.04, thanks!

It looks like clutter has been discontinued upstream: https://blogs.gnome.org/clutter.

vadi2 avatar Aug 15 '24 06:08 vadi2

sudo apt install gir1.2-gtkclutter-1.0 solved it for me on Ubuntu 24.04, thanks!

It looks like clutter has been discontinued upstream: https://blogs.gnome.org/clutter.

This thread is for Fedora though, but glad you got it sorted out xD

ryd3v avatar Aug 16 '24 18:08 ryd3v

This is because clutter is imported in the context of prefs.js. More specifically, prefs.js imports lib/shared.js, which imports the clutter.

honnip avatar Aug 20 '24 10:08 honnip

Apologies for the confusion here. I've added instructions to the readme for installing the clutter dependency; I'll try to remove the need for that dependency in a future release.

fflewddur avatar Oct 01 '24 05:10 fflewddur

The development version of TopHat no longer needs the clutter dependency, so I'm closing this issue.

fflewddur avatar Nov 11 '24 03:11 fflewddur