Please I need help with GitHub - caffeine-ng/caffeine-ng: ☕ Tray bar application able to temporarily inhibits the screensaver and sleep mode. as I can’t open it and it not showing on my top options bar to activate or deactivate it.
Anybody
Please I need help with GitHub - caffeine-ng/caffeine-ng: ☕ Tray bar application able to temporarily inhibits the screensaver and sleep mode. as I can’t open it and it not showing on my top options bar to activate or deactivate it.
Anybody
It works fine for me. Is there any output running caffeine
from the terminal?
@Yochanan You’re the packager
I am not running any output and my terminal is clean,
Please run the following command from your terminal. Copy and paste the output here using preformatted text:
caffeine --verbose
$ caffeine --verbose ✔
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/caffeine/paths.py", line 22, in <module>
from xdg.BaseDirectory import xdg_config_home
ModuleNotFoundError: No module named 'xdg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/caffeine", line 5, in <module>
from caffeine.cli import cli
File "/usr/lib/python3.10/site-packages/caffeine/__init__.py", line 20, in <module>
from caffeine.paths import LOCALE_PATH
File "/usr/lib/python3.10/site-packages/caffeine/paths.py", line 24, in <module>
from xdg import xdg_config_home
ModuleNotFoundError: No module named 'xdg'
Do you have python-xdg
or python-pyxdg
installed?
Either way, it seems I need change the dependency from python-xdg
to python-pyxdg
. 3.5.1+71+g77611ac-3 will be along shortly.
$ python3 -m pip install xdg
Defaulting to user installation because normal site-packages is not writeable
Collecting xdg
Downloading xdg-5.1.1-py3-none-any.whl (5.0 kB)
Installing collected packages: xdg
Successfully installed xdg-5.1.1
$ caffeine --verbose
Traceback (most recent call last):
File "/usr/bin/caffeine", line 5, in <module>
from caffeine.cli import cli
File "/usr/lib/python3.10/site-packages/caffeine/cli.py", line 6, in <module>
from setproctitle import setproctitle
ModuleNotFoundError: No module named 'setproctitle'
$ caffeine --verbose
Traceback (most recent call last):
File "/usr/bin/caffeine", line 5, in <module>
from caffeine.cli import cli
File "/usr/lib/python3.10/site-packages/caffeine/cli.py", line 9, in <module>
from caffeine.main import GUI
File "/usr/lib/python3.10/site-packages/caffeine/main.py", line 22, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
***ac-3 update is here, Installing and done with the installation…
I guess I have messed up with some site-packages
$ caffeine --verbose
Traceback (most recent call last):
File "/usr/bin/caffeine", line 5, in <module>
from caffeine.cli import cli
File "/usr/lib/python3.10/site-packages/caffeine/cli.py", line 9, in <module>
from caffeine.main import GUI
File "/usr/lib/python3.10/site-packages/caffeine/main.py", line 22, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
I keep installing all the dependencies after messing up with site-packages
on my PC.
It’s back on with sudo pacman -S python-pyxdg
as the last dependencies I install
SOLVED
Never install packages with other package managers other than Pacman (Add/Remove Software aka Pamac uses Pacman) unless you’re using a virtual environment for development.
Wrong package. You never answered my question about which package you had installed.
See what I mean? You already have python-setproctitle
and python-gobject
installed.
Yes, indeed. Remove whatever you installed with Pip with Pip.
In the future, please edit your previous reply if yours was the last post instead of replying multiple times in a row. I’ve merged your posts.
Thanks.
I deleted all packages in /usr/lib/python3.10/site-packages
when I ran into issues trying to work on a project after conflicts but it is resolved now.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.