-
Notifications
You must be signed in to change notification settings - Fork 15
Error while installing #28
Comments
Hey, I updated your code tags, you should use three backticks for code blocks. You have two errors:
|
I know, that python 2 has reached the end of live, but sadly the script I want to run is still written in python 2... I sucessfullly installed
|
I'm having the same problem even after following the above steps on a raspberry pi running Raspberry Pi OS using python 3. |
I'm using a Raspberry Pi 3B+ with raspbian os 10 maybe that can somehow help you |
The
gives ...
Yay we're back in business! |
ok, I tried again some minutes ago, because I needed to reinstall raspbian a while ago and now I get another error:
I have no idea while the error message changed, but if this means one error less I'll take it 🤷♂️ |
That gets back to this where the suggestion is:
So |
I installed
|
We fixed that error above in the comment thread by cloning the source from github and building manually rather than using pip because the pip/PyPI version of |
ok, I'll try that |
Building went fine, but I got an error on installing:
|
try running with super-user permissions on the setup line: |
( |
Sounds like you need cython. Run |
ok, |
Ok, worked, nice 🙂 |
By the way I would highly recommend updating the pip build 😉 |
Nice work figuring it out. I've been taking a look at this over the last few days, and trying to figure out how best to update it. Since Linux 4.18, IR is now handled in-kernel and IR events appear just like keyboard or mouse events, making the LIRC daemon and clients (like python-lirc) mostly redundant. The new way to configure keymaps is using I found the following links useful:
You can test this by running
You should see some output if you press buttons on your remote. If you want to see some events you can find a keymap which matches your remote controller, then clear and write them to the rc device:
If you don't have a remote controller, you can fake one with the rc-loopback kernel module, and inject the scancode which matches the KEY_VOLUMEUP key from
And finally you can monitor input events from Python using python-evdev, check out the tutorial. I had this printing IR events from the rc-loopback, please can someone try with an actual remote controller? I suggest we take the following actions:
What do you think? @Kakiking @partofthething @ankithu @thijstriemstra Edit: couple of things I still need to investigate:
|
This thread has helped me immensely. Thank you so much! |
@tompreston I working on anew project and came across this library but I faced installation troubles like others have. When I tried to build from source I ran across a different error from others because of a missing lirc header file:
On one system I experimented by downloaded the lirc source and building and installing which worked but was a royal pain to get everything installed. Reading your latest notes I decided to try ir-keytables and found that it did work and following the examples for Python using evdev also seemed to work. I only tested using the Pi as an IR receiver but I can confirm that it does work so I may tend to agree with you that this project might not be the best solution although it did work for me in the past. |
@GeorgeIoak that's great news, thank you for testing! I will update the README.md. |
I'm going to close this then. Solutions:
Thanks for contributing everyone, even if it does mean the demise of this project! 👍 |
I tried to install it using pip, but I got the following error:
The text was updated successfully, but these errors were encountered: