Below is what I get when I issue the "systemctl status kodi-autostart.service -l --no-pager" command:
CoreELEC:~/.config # systemctl status kodi-autostart.service -l --no-pager
● kodi-autostart.service - Kodi user autostart script
Loaded: loaded (/usr/lib/systemd/system/kodi-autostart.service; disabled; v endor preset: disabled)
Active: active (exited) since Fri 2021-11-05 07:05:55 PDT; 8h ago
Process: 5186 ExecStart=/bin/sh -c . /etc/profile; exec /bin/sh /storage/.co nfig/autostart.sh (code=exited, status=0/SUCCESS)
Main PID: 5186 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 1735)
Memory: 2.6M
CGroup: /system.slice/kodi-autostart.service
Nov 05 07:06:07 CoreELEC sh[5264]: Traceback (most recent call last):
Nov 05 07:06:07 CoreELEC sh[5264]: File "/storage/tvheadend-locast/tvh_main.py ", line 10, in <module>
Nov 05 07:06:07 CoreELEC sh[5264]: from lib import main
Nov 05 07:06:07 CoreELEC sh[5264]: File "/storage/tvheadend-locast/lib/main.py ", line 29, in <module>
Nov 05 07:06:07 CoreELEC sh[5264]: import lib.clients.web_tuner as web_tuner
Nov 05 07:06:07 CoreELEC sh[5264]: File "/storage/tvheadend-locast/lib/clients /web_tuner.py", line 34, in <module>
Nov 05 07:06:07 CoreELEC sh[5264]: from lib.streams.internal_proxy import In ternalProxy
Nov 05 07:06:07 CoreELEC sh[5264]: File "/storage/tvheadend-locast/lib/streams /internal_proxy.py", line 30, in <module>
Nov 05 07:06:07 CoreELEC sh[5264]: from cryptography.hazmat.primitives.ciphe rs import Cipher, algorithms, modes
Nov 05 07:06:07 CoreELEC sh[5264]: ModuleNotFoundError: No module named 'cryptog raphy'
So it looks like it can't find the cryptography module. But when I issue the "pip list" command I get:
CoreELEC:~/.config # pip list
Package Version
------------ -------
cffi 1.15.0
cryptography 35.0.0
pip 21.3.1
pycparser 2.20
setuptools 56.0.0