This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LIRC not connecting with pypilot_hat
#5
(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'
>>> 

Reply


Messages In This Thread
RE: LIRC not connecting with pypilot_hat - by drbarritt - 2022-02-15, 04:13 PM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-03-31, 04:30 AM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-06, 10:43 PM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-07, 07:20 PM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-08, 02:41 AM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-08, 09:31 PM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-09, 03:38 AM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-10, 07:33 AM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-11, 04:21 PM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-04-13, 04:05 AM
RE: LIRC not connecting with pypilot_hat - by esm - 2022-05-06, 05:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)