-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added installation guide for fedora
#351
base: main
Are you sure you want to change the base?
Conversation
On fedora, you should first install python dependecies via below command and then continue with pip installation! | ||
|
||
```bash | ||
sudo dnf install python3-evdev python3-devel gtksourceview4 python3-pydantic | ||
sudo dnf install python-pydbus | ||
sudo dnf install xmodmap | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- python3-evdev from the fedora repo is too old
- python-pydbus does not seem to exist: https://packages.fedoraproject.org/search?query=python-pydbus, did you mean python3-pydbus?
Except for python3-pydbus and xmodmap, which is an optional dependency, all of their exact names are already named in the pip section, so I'm not sure what the benefit of this would be.
I'd like to have a script here that generates a .rpm
package file, similar to the .deb
, so that the fedora package manager can properly manage it. But since I'm not using Fedora and don't have any knowledge about it, I'm just making wild guesses at the capabilities of Fedoras package management system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, python-evdev
is old but if you try to install using pip
, you get errors. I couldn't solve the errors, so as a workaround I found that if I first install python3-evdev
then upgrade using pip
, the error completely goes away. The same error happens with all other packages. You can see a sample report from Here. if he had tried to install using dnf
(not pip
), he would have easily seen that he is missing some other packages.
Also, python-pydbus
works fine for me. But you can replace it with python3-dbus
.
For rpm
, luckily someone else has done a package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically, using pip
should be the same. But, in the case of fedora
, it is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, I should also change python-evdev
to python3-evdev
according to this. But, as both of them are old as discussed, we eventually need to run sudo pip install evdev -U
.
There is also this: https://copr.fedorainfracloud.org/coprs/sunwire/input-remapper/, see #83 |
Hello. python-evdev 1.5.0 is now available in fedora 35, 36 and rawhide. Hope this helps. |
For what it's worth, I just successfully installed on Fedora 37 following the manual install instructions in README.md, with one addition of |
|
Still works in Fedora 40. |
I had a lot of trouble installing this module on
fedora 35
. I couldn't installevdev
usingsudo pip install evdev
due to some weird error. I ended up installing finding and installing these python packages and after installing them, your solution works just fine.