Do not remove fields, answer them, otherwise your bug will be reported as invalid and closed
How I did start SLC, with what arguments
$ cat /etc/systemd/system/hermesledcontrol.service
[Unit]
Description=Hermes Led Control
[Service]
WorkingDirectory=/home/pi/hermesLedControl_v2.0.15
ExecStart=/home/pi/hermesLedControl_v2.0.15/venv/bin/python3 main.py --hermesLedControlConfig=/home/pi/.config/hermesLedControl/configuration.yml
Restart=always
RestartSec=5
User=pi
[Install]
WantedBy=multi-user.target
Led device name
Adafruit Voice Bonnet - I used ReSpeaker 2-mic as it seems equivalent
The bug
A clear and concise description of what the bug is.
Debug output
Oct 04 10:37:01 raspberrypi python3[1884]: 2021-10-04 10:37:01,776 [MainThread] - [INFO] - - Using google as pattern with 3 leds
Oct 04 10:37:01 raspberrypi python3[1884]: 2021-10-04 10:37:01,782 [MainThread] - [INFO] - Initializing leds controller
Oct 04 10:37:02 raspberrypi python3[1884]: Traceback (most recent call last):
Oct 04 10:37:02 raspberrypi python3[1884]: File "main.py", line 63, in <module>
Oct 04 10:37:02 raspberrypi python3[1884]: main()
Oct 04 10:37:02 raspberrypi python3[1884]: File "main.py", line 48, in main
Oct 04 10:37:02 raspberrypi python3[1884]: slc = HermesLedControl(args)
Oct 04 10:37:02 raspberrypi python3[1884]: File "/home/pi/hermesLedControl_v2.0.15/models/HermesLedControl.py", line 134, in __init__
Oct 04 10:37:02 raspberrypi python3[1884]: self._ledsController = LedsController(self)
Oct 04 10:37:02 raspberrypi python3[1884]: File "/home/pi/hermesLedControl_v2.0.15/models/LedsController.py", line 57, in __init__
Oct 04 10:37:02 raspberrypi python3[1884]: self._pattern = GoogleHomeLedPattern(self)
Oct 04 10:37:02 raspberrypi python3[1884]: File "/home/pi/hermesLedControl_v2.0.15/ledPatterns/GoogleLedPattern.py", line 10, in __init__
Oct 04 10:37:02 raspberrypi python3[1884]: super(GoogleHomeLedPattern, self).__init__(controller)
Oct 04 10:37:02 raspberrypi python3[1884]: File "/home/pi/hermesLedControl_v2.0.15/models/LedPattern.py", line 10, in __init__
Oct 04 10:37:02 raspberrypi python3[1884]: self._logger = logging.getLogger('HermesLedControl')
Oct 04 10:37:02 raspberrypi python3[1884]: NameError: name 'logging' is not defined
Oct 04 10:37:02 raspberrypi systemd[1]: hermesledcontrol.service: Main process exited, code=exited, status=1/FAILURE
Oct 04 10:37:02 raspberrypi systemd[1]: hermesledcontrol.service: Failed with result 'exit-code'.
Oct 04 10:37:07 raspberrypi systemd[1]: hermesledcontrol.service: Service RestartSec=5s expired, scheduling restart.
Oct 04 10:37:07 raspberrypi systemd[1]: hermesledcontrol.service: Scheduled restart job, restart counter is at 26.
Oct 04 10:37:07 raspberrypi systemd[1]: Stopped Hermes Led Control.
Oct 04 10:37:07 raspberrypi systemd[1]: Started Hermes Led Control.
To Reproduce
happens automatically when service is started
the fix
add "import logging" to the top of /home/pi/hermesLedControl_v2.0.15/models/LedPattern.py
Do not remove fields, answer them, otherwise your bug will be reported as invalid and closed
How I did start SLC, with what arguments
Led device name Adafruit Voice Bonnet - I used ReSpeaker 2-mic as it seems equivalent
The bug A clear and concise description of what the bug is.
Debug output
To Reproduce happens automatically when service is started
the fix add "import logging" to the top of /home/pi/hermesLedControl_v2.0.15/models/LedPattern.py