Solved based on RefSnow comment:
yay -S --rebuild $(yay -Qqo /usr/lib/python3.12/site-packages/)
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: | 126 |
Popularity: | 1.01 |
First Submitted: | 2014-10-19 05:26 (UTC) |
Last Updated: | 2024-09-24 00:34 (UTC) |
Solved based on RefSnow comment:
yay -S --rebuild $(yay -Qqo /usr/lib/python3.12/site-packages/)
Broken with the following error:
Program python3 (click, ewmh, setproctitle, pulsectl) found: NO modules: click, setproctitle, pulsectl
meson.build:24:15: ERROR: python3 is missing modules: ewmh
A full log can be found at /home/pgmillon/.cache/yay/caffeine-ng/src/caffeine-ng-v4.2.0-0-g5027f55/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
Aborting...
-> error making: caffeine-ng-exit status 4
-> Failed to install the following packages. Manual intervention is required:
caffeine-ng - exit status 4
Packages are installed:
yay -Q | grep -i 'click|proctitle|pulsectl|ewmh'
python-click 8.1.8-1
python-ewmh 0.1.6-7
python-pulsectl 1:24.11.0-1
python-setproctitle 1.3.4-1
The man page is currently located in usr/share/man/man1/caffeine/caffeine.1.gz
. Correct location should be in usr/share/man/man1/caffeine.1.gz
.
Using man-db
package, it returns "No manual entry for caffeine" when man caffeine
is executed.
Anyone who is having problems can try the command below.
For me, it worked.
paru -S --rebuild $(paru -Qqo "/usr/lib/python3.12/site-packages")
python-ewmh is still available here: https://gitlab.archlinux.org/archlinux/packaging/packages/python-ewmh
It can still be built from source. Ideally, someone can maintain it in the AUR.
Just a kind reminder: python-ewmh is gone from AUR. So I guess caffeine-ng will fail to build.
I'll throw in the extra detail for anyone that needs it - since I use paru, I uninstalled this package, and then removed the cached files in ~/.cache/paru
. Doing that for both caffeine-ng
and python-pulsectl
let me rebuild them on install. Still works in 3.12, as is.
Try rebuilding python-pulsectl
for python3.12 too.
rebuild fails with this error:
Program python3 (click, ewmh, setproctitle, pulsectl) found: NO modules: click, ewmh, setproctitle
meson.build:24:15: ERROR: python3 is missing modules: pulsectl
EDIT: nevermind, solved rebuilding python-pulsectl
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).