the package wont install, no matter what i try. numpy dependency seems broken or outdated
EDIT: my mistake, i didnt do pacman -Syu
X)
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) |
the package wont install, no matter what i try. numpy dependency seems broken or outdated
EDIT: my mistake, i didnt do pacman -Syu
X)
@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.
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.
type in your terminal 1. export PATH=/usr/bin:$PATH 2. yay -Syu
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
@whynothugo thank you :)
@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.
@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.
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.
@xrva Then install https://aur.archlinux.org/pkgbase/openrazer-git and not this package.
@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.
@xrva Package seems up to date; latest upstream is 2.9.0.
Please UPDATE!!!!
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
.
Arch has moved to python 3.9 so nothing works anymore will there be an update to force it to work.
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
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
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.
There's nothing to fix. Just install the package normally.
So how will it be fixed?
python-notify2
has been moved to the [extra] repository which is why it's no longer available in the AUR.
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)
@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.
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.
@z3ntu: It worked when I tried after rebooting.
@sanyarajan: Can you try the build again? It might be a race condition in the Makefile..
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...
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.
To make this work in 2020
pacman -S python-pip pip install notify2
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"
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?
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.
@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.)
how often is this package updated against the upstream? Should users awaiting recent pull requests into openrazer install from the -git provider?
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.
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
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.
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.
As I've said, please complain at https://github.com/E5ten/pacaur and not here.
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.
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.
@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.
@Euphoriarules: Use "openrazer-meta" as package name.
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.
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
It's probably you, there was a Python upgrade from 3.6 to 3.7, you need to rebuild your Python dependencies.
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'
There is a problem installing this package, apparently it loops with python-openrazer.
@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
@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)
@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
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
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