Package Details: python-openrazer 3.3.0-1

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: 61
Popularity: 1.16
First Submitted: 2017-11-10 09:12 (UTC)
Last Updated: 2022-04-09 14:11 (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

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

testbird71 commented on 2021-08-16 13:37 (UTC)

ERROR: Your 'python3' does not point to /usr/bin/python3 but to /bin/python3, likely a custom environment like anaconda. Please build this package in a clean chroot (e.g. with https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot) or point your PATH variable to prefer /usr/bin/ temporarily. ==> FEHLER: Ein Fehler geschah in prepare().

How can i build it temporarily? I will not chroot

YoFreakinLo commented on 2021-08-06 09:49 (UTC)

@whynothugo thank you :)

whynothugo commented on 2021-08-06 09:48 (UTC)

@YoFreakinLo Yes, that's completely unrelated here. This is discussion for the openrazer package.

You're getting error download other packages from the Manjaro repositories. Apparently either mirrors or your local package db is out of date. Best to ask on Manjaro's forums or IRC.

djstringcheese commented on 2021-03-03 23:06 (UTC)

@Icy_Thought Just a note on that, if you have anaconda running by default, this currently won't fix the issue since they are still on python 3.8.2. If you deactivate the environment with conda deactivate, then rebuild, that will fix the issue.

Icy_Thought commented on 2021-03-01 21:12 (UTC)

For anyone greeted with ModuleNotFoundError: No module named 'openrazer_daemon' (when executing openrazer-daemon) or Exception: No module named 'openrazer' (when executing polychromatic-controller), execute the following command in your preferred terminal emulator: pacman -Qoq /usr/lib/python3.8/ | paru -S --rebuild - to rebuild the packages with Python > 3.9.

z3ntu commented on 2021-01-31 12:57 (UTC)

@xrva Then install https://aur.archlinux.org/pkgbase/openrazer-git and not this package.

xrva commented on 2021-01-31 12:56 (UTC)

@WhyNotHugo Well, it doesn't recognise my mouse which is in the supported list, the only thing i can assume is it is outdated. Because on ubuntu, it works flawlessly on the daily/dev version :) and it should be supported in the release too.

whynothugo commented on 2021-01-29 11:22 (UTC)

@xrva Package seems up to date; latest upstream is 2.9.0.

xrva commented on 2021-01-29 09:47 (UTC)

Please UPDATE!!!!

whynothugo commented on 2021-01-06 18:53 (UTC)

If you still have packages which you built with Python < 3.9, you need to rebuild them.

You can get a list of packages with: pacman -Qoq /usr/lib/python3.8.

quenyen commented on 2021-01-06 15:11 (UTC)

Arch has moved to python 3.9 so nothing works anymore will there be an update to force it to work.

knishofdeath commented on 2020-10-21 00:03 (UTC) (edited on 2020-10-21 03:02 (UTC) by knishofdeath)

Like DJ9 and others, it's still telling me it can't find python-notfiy2. I update using pacman -Syu checked my pacman.conf, the extra repository is there and not commented out, but still can't find the package. Any fixes?

Edit: found a fix that worked: https://www.reddit.com/r/ManjaroLinux/comments/j57y1t/help_installing_openrazer/g8uuc78/?utm_source=share&utm_medium=web2x&context=3

whynothugo commented on 2020-10-17 07:36 (UTC) (edited on 2020-10-17 07:37 (UTC) by whynothugo)

The package is not missing, it's here: https://www.archlinux.org/packages/extra/any/python-notify2/

Looks like your local package database is severely out of date.

Before reporting bugs, please make sure you system is up to date: https://wiki.archlinux.org/index.php/Pacman#Upgrading_packages

DJ9 commented on 2020-10-17 00:34 (UTC) (edited on 2020-10-17 05:12 (UTC) by DJ9)

This package currently has a issue regarding missing a dependency for pyton-notify2.

If you try to install the package as recommended on https://openrazer.github.io/ and follow the Arch recommended install via pacaur, here's the outcome:

:: Package openrazer-meta not found in repositories, trying AUR... :: resolving dependencies... :: no results found for python-notify2 (dependency tree: openrazer-daemon python-notify2)

So, yes.. this is a bug WhyNotHugo. Also, I have the extra repository enabled, still the same.

whynothugo commented on 2020-10-14 09:09 (UTC)

There's nothing to fix. Just install the package normally.

Skalli84 commented on 2020-10-13 16:33 (UTC)

So how will it be fixed?

z3ntu commented on 2020-10-13 15:04 (UTC) (edited on 2020-10-13 15:04 (UTC) by z3ntu)

python-notify2 has been moved to the [extra] repository which is why it's no longer available in the AUR.

Skalli84 commented on 2020-10-13 10:41 (UTC)

Ok, so apparently the package python-notify2 doesn't exist anymore. But there is one called python2-notify2. Since the package is missing I can't install this package. yay -S python-notify2 -> Could not find all required packages: python-notify2 (Target)

evolze commented on 2020-07-27 02:59 (UTC)

@Spixmaster: I was experiencing the same issue as well. I was able to get around this and get the AUR package installed by using:

yay -S python-notify2

From there, I followed the rest of the installation instructions, and I was good to go! I hope this helps.

Spixmaster commented on 2020-05-26 20:55 (UTC) (edited on 2020-05-26 20:56 (UTC) by Spixmaster)

I use the AUR helper yay. Why does it have problems with the installation of the AUR dependency python-notify2? The installation cannot be completed because of that.

sanyarajan commented on 2020-05-02 16:19 (UTC)

@z3ntu: It worked when I tried after rebooting.

z3ntu commented on 2020-05-02 12:34 (UTC)

@sanyarajan: Can you try the build again? It might be a race condition in the Makefile..

sanyarajan commented on 2020-05-02 12:26 (UTC) (edited on 2020-05-02 12:28 (UTC) by sanyarajan)

I get an error when trying to install this:

    :: Installing OpenRazer Daemon
    =====================================================
    make --no-print-directory -C daemon install
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr'
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share'
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/man'
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/man/man5'
    'resources/man/razer.conf.5' -> '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/man/man5/razer.conf.5'
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/dbus-1'
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/dbus-1/services'
    install: cannot stat 'org.razer.service': No such file or directory
    make[1]: *** [Makefile:16: install-systemd] Error 1
    make[1]: *** Waiting for unfinished jobs....
    install: creating directory '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/man/man8'
    'resources/man/openrazer-daemon.8' -> '/home/sanya/src/openrazer/pkg/openrazer-daemon/usr/share/man/man8/openrazer-daemon.8'
    make: *** [Makefile:59: daemon_install] Error 2
    ==> ERROR: A failure occurred in package_openrazer-daemon().
    Aborting...

His_Turdness commented on 2020-03-04 23:30 (UTC) (edited on 2020-05-02 21:40 (UTC) by His_Turdness)

Can I request support for the Razer Viper Ultimate here? Just got that mouse, but it doesn't seem to be on the supported devices list.

Edit: mouse RGB works ok in 2.8. Dock/charge station does not.

str0gg commented on 2020-02-14 07:18 (UTC) (edited on 2020-02-14 07:22 (UTC) by str0gg)

To make this work in 2020

pacman -S python-pip pip install notify2

Patch it like this:
lukaszbusko@lukaszbusko[± |master U:1 ?:7 ✗|]:~/repos/razer/openrazer $ cat PKGBUILD.patch
diff --git a/PKGBUILD b/PKGBUILD
index 8597a54..28e345a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ sha256sums=    ('252534642a59f7aacf323923e95e6901e9c6de559279241cb1d40d482a84b03d')

 package_python-openrazer() {
   pkgdesc="Python library for accessing the Razer daemon from Python."
-  depends=('openrazer-daemon' 'python-numpy')
+  depends=('python-numpy')

   cd "$pkgbase-$pkgver"
   make DESTDIR="$pkgdir" python_library_install
@@ -23,7 +23,7 @@ package_python-openrazer() {

 package_openrazer-daemon() {
   pkgdesc="Userspace daemon that abstracts access to the kernel driver.    Provides a DBus service for applications to use."
-  depends=('openrazer-driver-dkms' 'gtk3' 'python-dbus' 'python-gobject' 'python-setproctitle' 'python-daemonize' 'python-notify2' 'python-pyudev' 'xautomation')
+  depends=('openrazer-driver-dkms' 'gtk3' 'python-dbus' 'python-gobject' 'python-setproctitle' 'python-daemonize' 'python-pyudev' 'xautomation')
   install=openrazer-daemon.install

   cd "$pkgbase-$pkgver"
At the end remove broken openrazer-2.7.xz package and its done.

tantanbarbar commented on 2020-01-11 01:49 (UTC)

Hi, I have been trying to install this package and I keep getting an error that says the file is corrupt. I've searched for remedies to this error such as updating keys. But nothing has worked.

any idea if one of the files is actually corrupted?

blackpoll commented on 2019-07-27 14:23 (UTC)

Will this work with the new Wraith Prism Coolers that come with the AMD Ryzen 3rd generation processors? It says the LED lighting is controlled by Razer Chroma.

Freso commented on 2019-06-18 10:33 (UTC)

@tjc This package is of the "stable"/official releases, so whenever there’s a new release of openrazer from upstream, I’d expect that this package follows shortly after. If you want the latest code from the git repository, then yes, the -git package is what you should be using. (Like for pretty much all other AUR and Arch packages.)

tjc commented on 2019-06-18 00:02 (UTC)

how often is this package updated against the upstream? Should users awaiting recent pull requests into openrazer install from the -git provider?

skrooms commented on 2019-05-26 00:31 (UTC)

Attempting to install this via makepkg -si results in a lot of missing dependencies that causes the installation to fail. When attempting to track down these missing dependencies, they all seem to lead back to the package itself.

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

kaptoxic commented on 2019-05-15 18:58 (UTC)

Can you put some sort of comment that users need to install "linux-headers" so that the module can actually be installed? This is probably common knowledge, but might be tricky for a newcomer.

LinuxLoverForeve commented on 2019-05-04 20:39 (UTC) (edited on 2019-05-04 20:40 (UTC) by LinuxLoverForeve)

Hey 23ntu I saw your comment on the edit I made to the realized what you meant. I'm sorry I realize now that the dependency I mentioned in there can be tracked as a recursive dependency of one of the dependencies you have listed in the PKGBUILD. I'll make an issue on the aur helper I'm using.

z3ntu commented on 2019-02-22 14:52 (UTC)

As I've said, please complain at https://github.com/E5ten/pacaur and not here.

Euphoriarules commented on 2019-02-22 14:49 (UTC)

Never read about env LC_ALL=C before any command, thanks for the tips and also for markdown. here the output in english:

$ env LC_ALL=C pacaur -S openrazer-meta
:: Package openrazer-meta not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (4) openrazer-daemon-2.4.0-1  openrazer-driver-dkms-2.4.0-1  openrazer-meta-2.4.0-1  python-openrazer-2.4.0-1  
Repo Packages (10) blas-3.8.0-2  cblas-3.8.0-2  dkms-2.5-4  lapack-3.8.0-2  python-daemonize-2.5.0-1  python-numpy-1.16.1-1  python-pyudev-0.21.0-4  python-setproctitle-1.1.10-3  xautomation-1.09-3  xdotool-3.20160805.1-2  

Repo Download Size:    5.09 MiB
Repo Installed Size:  26.43 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving package(s)...
no results found for openrazer
:: failed to retrieve openrazer package

When im try to search openrazer in aur is not exist.

z3ntu commented on 2019-02-22 14:31 (UTC)

For formatting you can use normal markdown (code blocks are made with triple backticks ```), see https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet

And also you can prepend env LC_ALL=C to any command to get the output in English instead of your configured language. I don't know why pacaur fails to download the PKGBUILD but I guess you should ask in the issue tracker there.

Euphoriarules commented on 2019-02-22 14:22 (UTC) (edited on 2019-02-22 14:27 (UTC) by Euphoriarules)

@z3ntu: Where im made the change? with "$pacaur -S openrazer-meta" got the error and with "$ pacaur -S openrazer" say no result.


$ pacaur -S openrazer
:: Paquete(s) openrazer no se encontraron en los repositorios, intentando en el AUR...
:: resolviendo dependencias...
:: no se encontraron resultados para openrazer

Thanks.

z3ntu commented on 2019-02-22 12:59 (UTC)

@Euphoriarules: Use "openrazer-meta" as package name.

Euphoriarules commented on 2019-02-22 11:38 (UTC) (edited on 2019-02-22 14:51 (UTC) by Euphoriarules)

Hi, The instalation not work for me, get error "failed to retrieve openrazer package" here the full error:

$ pacaur -S openrazer-meta
:: Paquete(s) openrazer-meta no se encontraron en los repositorios, intentando en el AUR...
:: resolviendo dependencias...
:: verificando conflictos...

Paquetes del AUR (4): openrazer-daemon-2.4.0-1  openrazer-driver-dkms-2.4.0-1  openrazer-meta-2.4.0-1  python-openrazer-2.4.0-1  
Paquetes de repositorios (10): blas-3.8.0-2  cblas-3.8.0-2  dkms-2.5-4  lapack-3.8.0-2  python-daemonize-2.5.0-1  python-numpy-1.16.1-1  python-pyudev-0.21.0-4  python-setproctitle-1.1.10-3  xautomation-1.09-3  xdotool-3.20160805.1-2  

Tamaño de la descarga:     5.09 MiB
Tamaño de la instalación:  26.43 MiB

:: ¿Continuar con la instalación? [S/n] S 
:: Obteniendo paquete(s)... 
no results found for openrazer 
:: failed to retrieve openrazer package 
[sebas@principal openrazer]$

The pacaur are the last version 4.8.2

Any idea how to solve it?

Thanks.

P.D.: How make correct syntase for post? the wiki give some link, try to copy-past the console and use "< code> < /code >" but get only the two yellow line :(

P.D.2: Syntase is "< pre>< code> text here " wihout space :) Work also with ``` at the start and end of the text.

duyuji commented on 2018-10-28 02:10 (UTC)

It`s work for me in manjaro, but I need to do those steps: - yaourt -S linux414-headers (change for you version of linux kernel) - yaourt -S python-notify2 - yaourt -S python-openrazer - yaourt -S openrazer-meta

stlaz commented on 2018-09-06 07:40 (UTC)

It's probably you, there was a Python upgrade from 3.6 to 3.7, you need to rebuild your Python dependencies.

Nowaker commented on 2018-09-05 18:57 (UTC) (edited on 2018-09-05 18:57 (UTC) by Nowaker)

Is it me, the package or the upstream?

% openrazer-daemon -Fv
Traceback (most recent call last):
  File "/bin/openrazer-daemon", line 11, in <module>
    from openrazer_daemon.daemon import RazerDaemon, __version__
ModuleNotFoundError: No module named 'openrazer_daemon'

Nimamoh commented on 2018-08-11 23:54 (UTC)

There is a problem installing this package, apparently it loops with python-openrazer.

z3ntu commented on 2018-07-16 14:33 (UTC)

@MoroS: I'm still actually using pacaur because I want the diff between the PKGBUILD of the installed version and the one that'll be built which wasn't available in other helpers like yay or trizen last time I checked. Sometimes when pacaur fails then I go back to just calling makepkg

MoroS commented on 2018-07-16 14:30 (UTC)

@z3ntu Neither Yaourt or a simple makepkg doesn't seem to handle multi-package PKGBUILDs with different dependencies. Either way yes: installing the missing packages by hand solves the issue.

Side-question: do you use any AUR helper to manage your own? I've been using Yaourt for years, but it has it's issues (like this one or other multi-package related things)

z3ntu commented on 2018-07-16 14:12 (UTC)

@MoroS: That's just a sign that your AUR helper can't handle dependencies properly. Try installing python-notify2 explicitly and then only afterwards install openrazer-meta

MoroS commented on 2018-07-16 14:10 (UTC) (edited on 2018-07-16 14:20 (UTC) by MoroS)

Hi, there seems to be a dependency issue. It's lacking python-notify2 and falls in a dependency fail cascase:

error: failed to prepare transaction (could not satisfy dependencies) :: unable to satisfy dependency 'python-notify2' required by openrazer-daemon :: unable to satisfy dependency 'python-notify2' required by openrazer-daemon :: unable to satisfy dependency 'openrazer-daemon' required by openrazer-meta :: unable to satisfy dependency 'python-notify2' required by openrazer-daemon :: unable to satisfy dependency 'openrazer-daemon' required by python- openrazer :: unable to satisfy dependency 'python-openrazer' required by openrazer-meta :: unable to satisfy dependency 'python-notify2' required by openrazer-daemon :: unable to satisfy dependency 'openrazer-daemon' required by python-openrazer

ashwinkj commented on 2017-11-18 22:02 (UTC)

@z3ntu I think you made the same mistake with the SHA for version 2.2.1-1 For me the tagged release is showing 7827C2398B695EA002EDBD5C7F92FDD722039886F946B35DA537DDFF9E998F5E

Majora320 commented on 2017-11-18 20:30 (UTC)

Same for me. Correct SHA256 is the one ashwinkj mentioned.

TaurohtaR commented on 2017-11-18 18:45 (UTC)

Cant update ==> Validating source files with sha256sums... openrazer-2.1.1.tar.xz ... FAILED ==> ERROR: One or more files did not pass the validity check!

ashwinkj commented on 2017-11-14 22:09 (UTC)

The latest update for 2.1-1 seems to have a mistmatched sha. The correct one seems to be 784cc810a50887c0cdb8169e02ae412c8db67541681cc8191be85b3d65c26fb3.

z3ntu commented on 2017-09-20 14:55 (UTC)

@PhantomWhiskers: You have to update openrazer-meta (+dependencies) to version 2.0.0-1 and polychromatic to 0.3.11.1-1 because there were some breaking changes. About the 504 error: That's caused by the AUR and not by me...

PhantomWhiskers commented on 2017-09-20 01:51 (UTC)

Latest update won't update/install with pacaur, giving me the message `fatal: unable to access 'https://aur.archlinux.org/razer-drivers.git/': The requested URL returned error: 504` Polychromatic will now give me the message "Daemon Not Installed" after attempting to update this package with `pacaur -Syu` and `pacaur -S openrazer-meta`

timourf commented on 2017-09-01 17:11 (UTC)

It looks like the source file (v1.1.15.tar.gz) is failing to validate

gabmus commented on 2017-05-05 23:00 (UTC)

I approve of the merge request into the package razer-drivers.

Aryvandaar commented on 2017-03-12 19:56 (UTC)

I had the same dependency problem. If I recall correctly I installed python-razer before I installed the meta package.

lezed1 commented on 2017-03-05 03:13 (UTC)

It seems to work if you install razer-driver-dkms: https://aur.archlinux.org/packages/razer-driver-dkms/

commented on 2017-02-26 23:24 (UTC)

no results found for RAZER-DRIVERS-MODULES (dependency tree: razer-driver-meta python-razer razer-daemon RAZER-DRIVERS-MODULES)

Dietr1ch commented on 2017-02-25 23:39 (UTC)

There seems to be a problem with the dependencies

gabmus commented on 2017-01-25 20:38 (UTC)

I approve of the merge request into the package razer-drivers.

gabmus commented on 2017-01-25 20:38 (UTC)

I approve of the merge request into the package razer-drivers.

gabmus commented on 2017-01-25 20:38 (UTC)

I approve of the merge request into the package razer-drivers.

z3ntu commented on 2017-01-24 13:43 (UTC)

This package will be filled with razer-driver-dkms, razer-daemon & python-razer when the same-named packages are merged here.

gabmus commented on 2017-01-17 08:41 (UTC)

@Wolfiezn @m13253 added python-pyudev as a dependency

Wolfizen commented on 2017-01-16 18:45 (UTC)

The dependency issue with python-pyudev is fixed in the (-git) package, waiting for a version bump now.

m13253 commented on 2017-01-06 06:28 (UTC)

Seems missing dependency: python-pyudev > razer-service Traceback (most recent call last): File "/usr/bin/razer-service", line 7, in <module> from razer_daemon.daemon import daemonize File "/usr/lib/python3.5/site-packages/razer_daemon/daemon.py", line 23, in <module> from pyudev import Context, Monitor, MonitorObserver ImportError: No module named 'pyudev'

m3thodic commented on 2016-10-01 21:30 (UTC)

The linked gist fixes the **ImportError: No module named 'razer'** issue when using razercommander. Thanks! https://gist.github.com/tonylambiris/da87ddc93c8991181e89fc3780630a07