You are not logged in.
Hi there were some arch updates I recently installed that has broken some stuff on my computer.
I can't get caffeine-ng to work anymore. I get the error ValueError: Namespace GdkPixbuf not available
I did try installing gdk-pixbuf2 via pacman, but this hasn't solved the issue.
I am currently running arch 1.4
(base) [user@user ~]$ caffeine
Traceback (most recent call last):
File "/home/user/miniconda3/bin/caffeine", line 33, in <module>
sys.exit(load_entry_point('caffeine-ng==3.4.2', 'gui_scripts', 'caffeine')())
File "/home/user/miniconda3/bin/caffeine", line 25, in importlib_load_entry_point
return next(matches).load()
File "/home/user/miniconda3/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/home/user/miniconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/user/.local/lib/python3.8/site-packages/caffeine/main.py", line 42, in <module>
gi.require_version("GdkPixbuf", "2.0") # noqa
File "/home/user/miniconda3/lib/python3.8/site-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GdkPixbuf not availableOffline
GDK Pixbuf will be built against python 3.9 whereas you try to use a 3.8 python. Why are you running caffeine from a user local environment anyway?
Offline
GDK Pixbuf will be built against python 3.9 whereas you try to use a 3.8 python. Why are you running caffeine from a user local environment anyway?
I'm not sure what you mean by "local user environment", I am running caffeine in terminal to get it working. I tried running via app finder but it just gives a red stop sign
I have installed caffeine from AUR: https://aur.archlinux.org/packages/caffeine-ng/
Last edited by fstabme (2021-01-05 18:16:07)
Offline
Then you've installed a package into a home path.
Check through your .profile and similar shell files remove anything that changes your PATH and/or PYTHONPATH to include miniconda. Restart your shell, verify with
type -a python
python --versionthat you get /usr/bin/python and 3.9.1 respectively and build and install the package again. conda should have the "conda" command to explicitly set up it's local environment, do that only when actually working on local python packages.
Last edited by V1del (2021-01-05 18:57:33)
Offline
Thanks! I edited my .bashrc file:
#
# ~/.bashrc
#
# If not running interactively, don't do anything
#[[ $- != *i* ]] && return
#alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/user/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
#eval "$__conda_setup"
#else
if [ -f "/home/user/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/user/miniconda3/etc/profile.d/conda.sh"
#else
#export PATH=""$PATH:/home/user/miniconda3/bin"
# fi
fi
#unset __conda_setup
# <<< conda initialize <<<and in /etc/profile i've commented out:
#export PATH="$PATH:/usr/local/miniconda/bin"
running type -a python gives me:
[user@user ~]$ type -a python
python is /usr/bin/python
python is /bin/pythonI reinstalled caffeine-ng and it's all working great again ![]()
thanks
Last edited by fstabme (2021-01-05 20:08:28)
Offline