Since today's update I get the error ModuleNotFoundError: No module named 'click'
. The Package python-click
should probably be added as dependency.
Search Criteria
Package Details: caffeine-ng 4.2.0-1
Package Actions
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: | whynothugo |
Votes: | 120 |
Popularity: | 0.85 |
First Submitted: | 2014-10-19 05:26 (UTC) |
Last Updated: | 2023-05-08 10:23 (UTC) |
Dependencies (16)
- gtk3 (gtk3-ubuntuAUR, gtk3-no_deadkeys_underlineAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classic-xfceAUR, gtk3-classicAUR)
- libayatana-appindicator
- libindicator-gtk3
- libnotify (libnotify-gitAUR)
- python-click
- python-dbus
- python-ewmh
- python-gobject (python-gobject-gitAUR)
- python-pulsectlAUR
- python-setproctitle
- python-wheel
- python-xdg (python-pyxdg)
- git (git-gitAUR) (make)
- meson (meson-gitAUR, meson-rustAUR) (make)
- scdoc (scdoc-gitAUR) (make)
- xfconf (xfconf-gtk2AUR, xfconf-gitAUR, xfconf-develAUR) (optional) – Support for Xfce presentation mode.
Required by (1)
- pyload-ng (requires caffeine) (optional)
Sources (1)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 24 Next › Last »
scaramanga commented on 2022-07-12 18:01 (UTC)
whynothugo commented on 2022-04-19 22:28 (UTC) (edited on 2022-04-19 22:28 (UTC) by whynothugo)
I've reverted the change for now; it's best to deal with pep517 support upstream.
yochananmarqos commented on 2022-04-19 16:15 (UTC)
@DropstEffect: Add rsync
to makedepends() and change the package() function to:
package() {
cd "$srcdir"/caffeine-ng-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
mv "${pkgdir}${site_packages}/etc" "$pkgdir/"
rsync -av "${pkgdir}${site_packages}/usr" "$pkgdir/"
rm -rf "${pkgdir}${site_packages}/usr"
}
DrosteEffect commented on 2022-04-19 14:51 (UTC)
Latest update puts files in the wrong spots (all under /usr/lib/python3.10/site-packages/), e.g. the desktop file is located at /usr/lib/python3.10/site-packages/usr/share/applications/caffeine.desktop.
whynothugo commented on 2022-02-26 22:15 (UTC)
cciva: Try rebuilding python-pulsectl. Did you recently upgrade your python version?
johnjohn commented on 2022-02-23 06:04 (UTC) (edited on 2022-02-23 06:05 (UTC) by johnjohn)
I got no module pulsectl
error
Traceback (most recent call last):
File "/usr/bin/caffeine", line 33, in <module>
sys.exit(load_entry_point('caffeine-ng==3.5.1', 'gui_scripts', 'caffeine')())
File "/usr/bin/caffeine", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/caffeine/main.py", line 54, in <module>
from .core import Caffeine # noqa: E402
File "/usr/lib/python3.10/site-packages/caffeine/core.py", line 26, in <module>
from pulsectl import Pulse
ModuleNotFoundError: No module named 'pulsectl'
Simply install it via pip solved it.
pip install pulsectl
cciva commented on 2021-12-14 10:20 (UTC) (edited on 2021-12-14 10:21 (UTC) by cciva)
And to rebild them all with latest python (python 3.10) you can do following :
pacman -Qoq /usr/lib/python3.9 | yay -S - --rebuild
source: reddit
whynothugo commented on 2021-12-13 19:15 (UTC) (edited on 2021-12-15 12:46 (UTC) by whynothugo)
After upgrading to Python 3.10, you need to rebuild all Python packages built with Python 3.9. You can get a list of these packages using:
pacman -Qo /usr/lib/python3.9
You can reinstall these with:
paru -S --aur --rebuild $(pacman -Qo /usr/lib/python3.9)
alfredo.ardito commented on 2021-12-13 10:20 (UTC)
caffeine not working anymore after python upgrade to 3.10.1
it reports this error:
importlib.metadata.PackageNotFoundError: No package metadata was found for caffeine-ng
I tried to uninstall and reinstall but the error persists.
johnjohn commented on 2021-11-12 17:25 (UTC)
I am using pyenv and had to install "dbus-python" manually using pip.
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).