Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pourmand1376
Copy link

I had a lot of trouble installing this module on fedora 35. I couldn't install evdev using sudo 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.

Comment on lines +41 to +47
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
```
Copy link
Owner

@sezanzeb sezanzeb Mar 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Author

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.

Copy link
Author

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.

Copy link
Author

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.

@sezanzeb
Copy link
Owner

sezanzeb commented Mar 22, 2022

@gvalkov
Copy link

gvalkov commented Apr 2, 2022

Hello. python-evdev 1.5.0 is now available in fedora 35, 36 and rawhide. Hope this helps.

@jason-bxtn
Copy link

For what it's worth, I just successfully installed on Fedora 37 following the manual install instructions in README.md, with one addition of sudo dnf install gettext, as I was getting a "no such file or directory" error when setup.py was trying to run msgfmt to generate translations.

@pauliuszaleckas
Copy link

sudo dnf install input-remapper was all I needed on Fedora 38

@richardm1
Copy link

sudo dnf install input-remapper was all I needed on Fedora 38

Still works in Fedora 40.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants