2022-02-15, 04:13 PM
(2022-02-15, 03:45 AM)seandepagnier Wrote: I don't even see lirc.
What if you just run python3 and type:
>> import lirc
or
>> import pylirc
Sean, lircd is running as a service, but not lirc:
pi@openplotter:~ $ sudo systemctl status lircd
● lircd.service - Flexible IR remote input/output application support
Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-02-15 13:55:58 GMT; 1h 7min ago
Docs: man:lircd(8)
http://lirc.org/html/configure.html
Main PID: 527 (lircd)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/lircd.service
└─527 /usr/sbin/lircd --nodaemon
Feb 15 13:55:57 openplotter lircd-0.10.1[527]: Notice: Driver version: 0.10.0
Feb 15 13:55:57 openplotter lircd-0.10.1[527]: Notice: Driver info: See file:///usr/share/doc/lirc/plugindocs/default.html
Feb 15 13:55:57 openplotter lircd-0.10.1[527]: Info: lircd: Opening log, level: Info
Feb 15 13:55:57 openplotter lircd-0.10.1[527]: Notice: Using systemd fd
Feb 15 13:55:57 openplotter lircd-0.10.1[527]: Warning: Running as root
Feb 15 13:55:58 openplotter lircd[527]: lircd-0.10.1[527]: Info: Using remote: NEC.
Feb 15 13:55:58 openplotter lircd-0.10.1[527]: Info: Using remote: NEC.
Feb 15 13:55:58 openplotter lircd-0.10.1[527]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Feb 15 13:55:58 openplotter systemd[1]: Started Flexible IR remote input/output application support.
Feb 15 13:55:58 openplotter lircd[527]: lircd-0.10.1[527]: Notice: lircd(default) ready, using /var/run/lirc/lircd
pi@openplotter:~ $ sudo systemctl status lirc
Unit lirc.service could not be found.
I tried your suggested commands, but get the same error that pypilot_hat generates:
pi@openplotter:~ $ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lirc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/lirc/__init__.py", line 7, in <module>
from .client import get_default_lircrc_path
File "/usr/lib/python3/dist-packages/lirc/client.py", line 38, in <module>
import _client
ModuleNotFoundError: No module named '_client'
>>> import pylirc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pylirc'
>>>