I absolutely agree with vmsh0's suggestion, this error is stupid. It always messes up the installation and I have to edit PKGBUILD manually just because my PATH is a bit different. I don't even know what and when changed in the first place!
Search Criteria
Package Details: python-openrazer 3.6.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/openrazer.git (read-only, click to copy) |
---|---|
Package Base: | openrazer |
Description: | Python library for accessing the Razer daemon from Python. |
Upstream URL: | https://github.com/openrazer/openrazer |
Licenses: | GPL2 |
Submitter: | z3ntu |
Maintainer: | z3ntu |
Last Packager: | z3ntu |
Votes: | 68 |
Popularity: | 1.40 |
First Submitted: | 2017-11-10 09:12 (UTC) |
Last Updated: | 2023-05-23 21:16 (UTC) |
Dependencies (3)
Required by (8)
Sources (1)
JohnTheCF commented on 2023-05-15 15:11 (UTC)
sokorototo commented on 2023-05-03 18:41 (UTC)
Hmm, the package version is 3.6.0-1 but the module is named /usr/src/openrazer-driver-3.5.1?
xekarfwtos commented on 2023-03-20 07:48 (UTC) (edited on 2023-03-20 07:49 (UTC) by xekarfwtos)
I get the following error using yaourt to get the package from AUR:
(~):yaourt -S openrazer-meta-git
==> Downloading openrazer-meta-git PKGBUILD from AUR...
==> ERROR: openrazer-meta-git not found in AUR.
(~):yaourt -S openrazer-meta
==> Downloading openrazer-meta PKGBUILD from AUR...
==> ERROR: openrazer-meta not found in AUR.
faceless33 commented on 2022-12-20 09:13 (UTC)
Trying to install it with yay, have the following error:
:: Running post-transaction hooks...
(1/3) Reloading device manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Install DKMS modules
==> dkms install --no-depmod openrazer-driver/3.5.1 -k 6.0.12-arch1-1
==> depmod 6.0.12-arch1-1
==> ERROR: Missing 5.13.6-arch1-1 kernel headers for module openrazer-driver/3.5.1.
I have linux-headers 6.0.12.arch1-1 installed and kernel 6.0.12-arch1-1.
vincent-vega commented on 2022-12-08 17:31 (UTC)
Hi, I tried installing this package (v3.5.1-1) using yay and pamac but I'm getting the following error:
==> Starting package_python-openrazer()... :: Installing OpenRazer python library ===================================================== make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. python3 setup.py install --prefix=/usr --root=/home/davide/.cache/yay/openrazer/pkg/python-openrazer Traceback (most recent call last): File "/home/davide/.cache/yay/openrazer/src/openrazer-3.5.1/pylib/setup.py", line 6, in <module> setup( File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup _install_setup_requires(attrs) File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires dist = MinimalDistribution(attrs) File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 57, in __init__ super().__init__(filtered) File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 473, in __init__ for ep in metadata.entry_points(group='distutils.setup_keywords'): File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1009, in entry_points return SelectableGroups.load(eps).select(**params) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load ordered = sorted(eps, key=by_group) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1006, in <genexpr> eps = itertools.chain.from_iterable( File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 941, in _normalized_name return self._name_from_stem(stem) or super()._normalized_name File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name return Prepared.normalize(self.name) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 871, in normalize return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_') File "/usr/lib/python3.10/re.py", line 209, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object make[1]: *** [Makefile:9: install] Error 1 make: *** [Makefile:91: python_library_install] Error 2 ==> ERROR: A failure occurred in package_python-openrazer(). Aborting... -> error making: openrazer (openrazer-driver-dkms openrazer-daemon python-openrazer openrazer-meta)
My python3 installation does point to /user/bin/python3
z3ntu commented on 2022-12-06 19:39 (UTC)
@gh4ever: See https://wiki.archlinux.org/title/Arch_User_Repository#Getting_started which
is part of the base-devel
group which you need to have installed before building any AUR package.
gh4ever commented on 2022-12-06 19:38 (UTC)
which
is an unmarked build dependency, without which the python check fails.
vmsh0 commented on 2022-11-20 16:37 (UTC) (edited on 2022-11-20 16:37 (UTC) by vmsh0)
To me this boils down to: 1) Either assume /usr/bin/python3 is the one and only python you like, and just explicitly use that. You have a transitive dependency on the python, so you know what's there, that's fine 2) Or print a warning/ask for a variable (that is not PATH :) to be set when python3 is not /usr/bin/python3, to communicate your concern to the user and ask for their confirmation.
This middle ground of both assuming something which is definitely there is good, but refusing to use it, is unconvincing to me. Having said this, at the end of the day it's pretty easy to work around this, so if that's the way you thing it shall be done, then it's all good. Just my two cents. Thanks for the package!
gilbs commented on 2022-09-03 14:00 (UTC)
Do you think it would be possible to provide a way to bypass the python path check that doesn't involve manual operations (like editing the PKGBUILD or changing the PATH)? One idea could be to check against some environment variable (e.g. ["${AUR_OPENRAZER_SKIP_PYTHON_PATH_CHECK}" = "true"]?).
I use asdf-vm which shims system python by default, so it should play nicely with this install script.
Thanks for maintaining this package.
therxyy commented on 2022-02-07 17:04 (UTC) (edited on 2022-02-07 17:14 (UTC) by therxyy)
the package wont install, no matter what i try. numpy dependency seems broken or outdated
EDIT: my mistake, i didnt do pacman -Syu
X)
Pinned Comments
z3ntu commented on 2019-05-16 14:12 (UTC) (edited on 2022-04-09 14:39 (UTC) by z3ntu)
Please remember, that this package uses DKMS for building the kernel module and as such requires the kernel headers for your kernel installed. See also https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support
Another manual step that needs to be taken is adding your user to the plugdev group, e.g. using the command
sudo gpasswd -a $USER plugdev
.You can find a few tips for troubleshooting an install at https://github.com/openrazer/openrazer/wiki/Troubleshooting