Caffeine-ng is broken after update

I have just updated my system, and now caffeine-ng would not start. This is different from other reports. Most likely linked the python upgrade to 3.13.

Traceback (most recent call last):
  File "/usr/bin/caffeine", line 3, in <module>
    from caffeine.cli import cli
ModuleNotFoundError: No module named 'caffeine'

I’ve moved this to AUR as it seems to be only an AUR package (not in the regular repos).

You will likely need to rebuild the package following the update e.g.

pamac build caffeine-ng

Cheers! :wink:

2 Likes

It looks like the AUR package is missing a dependency:

==> Making package: caffeine-ng 4.2.0-2 (Do 13 Feb 2025 19:22:41 CET)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> libindicator-gtk3
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Have you rebuilt caffeine-ng and/or rebuilt all of the Python dependencies that install site packages, as per the Stable Updates thread? :point_down:

2 Likes

I did manually, but this is much better.

1 Like

libindicator-gtk3 is in the extra repo, so it shouldn’t be missing.

Have you tried using another AUR helper, such as yay?

1 Like

You don’t mention which Manjaro edition you are using; thus the importance of providing system information with a Support request; it would have told us that and much more.

As mentioned by @Yochanan in the Update announcement comments, if you’re using GNOME, gnome-shell-extension-caffeine is recommended instead of caffeine-ng.

If you still want caffeine-ng (dropped from the repos back to the AUR), you’ll need to rebuild python-ewmh & python-pulsectl first.

Regards.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.