ulauncher seems to use python-pyxdg rather than python-xdg now.
@sem.z I had the same error and I was able to resolve it by forced removal of python-xdg and installation of python-pyxdg.
Git Clone URL: | https://aur.archlinux.org/ulauncher.git (read-only, click to copy) |
---|---|
Package Base: | ulauncher |
Description: | Application launcher for Linux |
Upstream URL: | https://ulauncher.io |
Keywords: | application launcher stable |
Licenses: | GPL3 |
Submitter: | ulauncher |
Maintainer: | ulauncher (friday) |
Last Packager: | friday |
Votes: | 74 |
Popularity: | 2.27 |
First Submitted: | 2017-03-03 09:36 (UTC) |
Last Updated: | 2024-04-02 20:39 (UTC) |
ulauncher seems to use python-pyxdg rather than python-xdg now.
@sem.z I had the same error and I was able to resolve it by forced removal of python-xdg and installation of python-pyxdg.
If someone getting an error:
$ ulauncher
\Traceback (most recent call last):
File "/usr/bin/ulauncher", line 27, in <module>
from ulauncher.main import main
File "/usr/lib/python3.9/site-packages/ulauncher/main.py", line 19, in <module>
from ulauncher.config import (get_version, get_options, is_wayland, is_wayland_compatibility_on,
File "/usr/lib/python3.9/site-packages/ulauncher/config.py", line 17, in <module>
from xdg.BaseDirectory import xdg_config_home, xdg_cache_home, xdg_data_dirs, xdg_data_home
ModuleNotFoundError: No module named 'xdg.BaseDirectory'
Install python-pyxdg
dependency instead of python-xdg
.
Message for maintainer: Is it possible to include @yochananmarqos comments into the recommended files? They fix all the issues of this package. Thanks
PKGBUILD critique:
libappindicator-gtk3
should be optionalwmctrl
is missing as an optional dependency, see Hotkey In Wayland.Improved PKGBUILD and install file.
jtylerjones -- to enable the systemd user service, you may need to create the file /etc/systemd/user/ulauncher.service
with the contents of https://github.com/Ulauncher/Ulauncher/blob/dev/contrib/systemd/ulauncher.service, and then enable the service with systemctl --user enable ulauncher.service
.
I was able to get around the python3-distutils-extra
error by simply installing python2
.
I fix the python3-distutils-extra error by adding (as ulauncher said) /usr/lib/python3.8/site-packages to the PYTHONPATH:
Open a terminal
Open the .bashrc with a text editor, eg. Kate ~/.bashrc
Add at the end export PYTHONPATH="/usr/lib/python3.8/site-packages"
Install ulauncher
Note: you must be under python environment. I was in anaconda environment and even if the python3-distutils-extra did not appear I was not able to compleate the installation, so I ran conda deactivate and after the installation conda activate
5.8.1 (https://github.com/Ulauncher/Ulauncher/releases/tag/5.8.1) added a systemd service. However, it does not appear to be included in the tar this uses to build.
I could see it being retrieved using something like this "https://raw.githubusercontent.com/Ulauncher/Ulauncher/${pkgver}/contrib/systemd/ulauncher.service"
One suggestion: can we add wmctrl
as an optional dependency? Without it, the window does not focus in Wayland. See https://github.com/Ulauncher/Ulauncher/wiki/Hotkey-In-Wayland
the build error is due to pyenv (atleast in my system), run pyenv local system in a terminal and proceed to install
Pinned Comments
friday commented on 2023-10-02 18:19 (UTC) (edited on 2023-10-21 16:18 (UTC) by friday)
When you update Python, you need to rebuild all python AUR packages, including Ulauncher.
See https://github.com/Ulauncher/Ulauncher/discussions/1280 for more info