I have set up a RaspberryPi 3 with Buildroot including python3 and also python-lirc using utils/scanpypi python-lirc
which also worked fine, included this in my main config.in tho show in make menuconfig
and compiled without errors.
But when trying to run a script using from lirc ìmport RawConnection
it fails with:
Traceback (most recent call last):
File "/root/LeinwandPi.py", line 1, in <module>
from lirc import RawConnection
File "/usr/lib/python3.10/site-packages/lirc/__init__.py", line 7, in <module>
ImportError: cannot import name 'get_default_lircrc_path' from 'lirc.client' (/usr/lib/python3.10/site-packages/lirc/client.pyc)
what is also strange is that I cannot use driver = default
in lirc_options
as it errors with
Driver `default' not found or not loadable (wrong or missing -U/--plugindir?).
Available drivers:
accent asusdh atwf83 bte bw6130 creative creative_infracd
devinput dsp dvico ea65 file girs i2cuser
irlink irtoy livedrive_midi livedrive_seq logitech macmini mouseremote
mouseremote_ps2 mp3anywhere mplay mplay2 pcmak pinsys pixelview
samsung sb0540 silitek sonyir tira tira_raw udp
uirt2 uirt2_raw usb_uirt_raw usbx zotac
But using driver = devinput
at least with mode2
command, my IR signals are received.