Package Details: python-openrazer 3.6.1-1

Git Clone URL: (read-only, click to copy)
Package Base: openrazer
Description: Python library for accessing the Razer daemon from Python.
Upstream URL:
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)

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

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

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

JohnTheCF commented on 2023-05-15 15:11 (UTC)

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!

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 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/", line 6, in <module>
  File "/usr/lib/python3.10/site-packages/setuptools/", line 86, in setup
  File "/usr/lib/python3.10/site-packages/setuptools/", line 75, in _install_setup_requires
    dist = MinimalDistribution(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/", line 57, in __init__
  File "/usr/lib/python3.10/site-packages/setuptools/", line 473, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "/usr/lib/python3.10/importlib/metadata/", line 1009, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "/usr/lib/python3.10/importlib/metadata/", line 459, in load
    ordered = sorted(eps, key=by_group)
  File "/usr/lib/python3.10/importlib/metadata/", line 1006, in <genexpr>
    eps = itertools.chain.from_iterable(
  File "/usr/lib/python3.10/importlib/metadata/", line 16, in unique_everseen
    k = key(element)
  File "/usr/lib/python3.10/importlib/metadata/", line 941, in _normalized_name
    return self._name_from_stem(stem) or super()._normalized_name
  File "/usr/lib/python3.10/importlib/metadata/", line 622, in _normalized_name
    return Prepared.normalize(
  File "/usr/lib/python3.10/importlib/metadata/", line 871, in normalize
    return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
  File "/usr/lib/python3.10/", 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().
 -> 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 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)