@alfredo.ardito re-installing caffeine and these python packages worked for me: python-docopt, python-ewmh, python-setproctitle, python-wheel, python-xlib
I believe its something about last python update
Git Clone URL: | https://aur.archlinux.org/caffeine-ng.git (read-only, click to copy) |
---|---|
Package Base: | caffeine-ng |
Description: | Status bar application able to temporarily inhibit the screensaver and sleep mode. |
Upstream URL: | https://codeberg.org/WhyNotHugo/caffeine-ng |
Keywords: | caffeine powersaving screensaver |
Licenses: | GPL-3.0-or-later |
Conflicts: | caffeine, caffeine-bzr, caffeine-oneclick, caffeine-systray |
Provides: | caffeine, caffeine-bzr, caffeine-oneclick, caffeine-systray |
Replaces: | caffeine-oneclick, caffeine-systray |
Submitter: | whynothugo |
Maintainer: | whynothugo (darose) |
Last Packager: | darose |
Votes: | 123 |
Popularity: | 0.83 |
First Submitted: | 2014-10-19 05:26 (UTC) |
Last Updated: | 2024-09-24 00:34 (UTC) |
« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 25 Next › Last »
@alfredo.ardito re-installing caffeine and these python packages worked for me: python-docopt, python-ewmh, python-setproctitle, python-wheel, python-xlib
I believe its something about last python update
It always used to work. I had this lately
@alfredo.ardito That's odd. Was this a one-time thing, or is it consistent?
Caffeine not executing anymore.
I uninstalled and reinstalled it again without errors. When I run it it halts displaying the following error:
~ $ caffeine
/usr/lib/python3.7/site-packages/caffeine/main.py:59: PyGIWarning:
AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3
Traceback (most recent call last):
File "/usr/bin/caffeine", line 11, in <module>
load_entry_point('caffeine-ng==3.4.2', 'gui_scripts', 'caffeine')()
File "/usr/lib/python3.7/site-packages/caffeine/main.py", line 437, in main
main = GUI(arguments["--preferences"])
File "/usr/lib/python3.7/site-packages/caffeine/main.py", line 155, in init
self.core = Caffeine(self.__process_manager)
File "/usr/lib/python3.7/site-packages/caffeine/core.py", line 73, in __init
self._ewmh = EWMH()
File "/usr/lib/python3.7/site-packages/ewmh/ewmh.py", line 70, in init
self.display = _display or display.Display()
File "/usr/lib/python3.7/site-packages/Xlib/display.py", line 89, in init
self.display = _BaseDisplay(display)
File "/usr/lib/python3.7/site-packages/Xlib/display.py", line 71, in init
protocol_display.Display.init(self, args, *keys)
File "/usr/lib/python3.7/site-packages/Xlib/protocol/display.py", line 167, in init
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": b'Invalid MIT-MAGIC-COOKIE-1 key'
@Demeter That behaviour is triggered if you have app indicators in your system (rather than a classic systray).
It's only active if libappindicator-gtk3 is installed.
Is it possible to switch caffeine just with left click on icon? Now works just popup menu via right click, then Enable - Disable... (MATE)
Yup, will update the pkgrel in a bit.
@WhyNotHugo Is a version bump appropriate because of the python upgrade?
Is there a way to disable INFO messages? My .xsession-errors is littered with messages of the type:
INFO:caffeine.core:XorgInhibitor is applicable, running it.
@WhyNotHugo: apparently, it was related to a conflict in my locale settings. In short, I had a script that set fr_CH instead of fr_FR as my default language. Fr_CH is not well handled in Plasma. Since I've deleted it, caffeine-ng opens normally.
Pinned Comments
whynothugo commented on 2023-05-05 09:34 (UTC)
After an upgrade to Python 3.11, you need to rebuild this package (and all Python packages in the AUR).