Package Details: openrazer-driver-dkms 3.5.1-1

Git Clone URL: https://aur.archlinux.org/openrazer.git (read-only, click to copy)
Package Base: openrazer
Description: Kernel driver for Razer devices (DKMS-variant)
Upstream URL: https://github.com/openrazer/openrazer
Licenses: GPL2
Submitter: z3ntu
Maintainer: z3ntu
Last Packager: z3ntu
Votes: 66
Popularity: 1.61
First Submitted: 2017-11-10 09:12 (UTC)
Last Updated: 2022-12-04 11:57 (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 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

Latest Comments

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

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)

z3ntu commented on 2021-11-24 20:45 (UTC)

@jahway603 I've only added the sanity check to the PKGBUILD so people stop building this package with a "broken" Python setup. The message already mentions "[..] or point your PATH variable to prefer /usr/bin/ temporarily." Would you be happy with explicitly adding the command "export PATH=/usr/bin:$PATH" to the message? And no I won't add workarounds to fix broken build environments.

jahway603 commented on 2021-11-22 02:56 (UTC)

Currently on 3.0.1-1 and unable to upgrade to the updated 3.1.0-1 version with the same "python path error". It was successful when I tried what @testbird71 suggested. @z3ntu, can you please add the fix into the PKGBUILD so that it will work for everyone? Thanks.

testbird71 commented on 2021-08-17 14:26 (UTC)

type in your terminal 1. export PATH=/usr/bin:$PATH 2. yay -Syu