I have encountered an issue with installing the pi-top SDK on Raspberry Pi OS. well it installs perfectly fine but the pt-sys-oled service has an issue starting.
Looking at the daemon.log it shows this
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: Traceback (most recent call last):
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/pt-sys-oled/pt-sys-oled", line 21, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from pitop.system.device import device_type
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/__init__.py", line 36, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .camera import Camera
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/camera/__init__.py", line 1, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .camera import Camera
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/camera/camera.py", line 1, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .core import UsbCamera
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/camera/core/__init__.py", line 8, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .capture_actions import (
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/camera/core/capture_actions/__init__.py", line 5, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .motion_detector import MotionDetector
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/camera/core/capture_actions/motion_detector.py", line 5, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from pitop.processing.core.vision_functions import import_opencv
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3/dist-packages/pitop/processing/core/vision_functions.py", line 2, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from imutils import grab_contours
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3.7/dist-packages/imutils/__init__.py", line 8, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: from .convenience import translate
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: File "/usr/lib/python3.7/dist-packages/imutils/convenience.py", line 6, in <module>
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: import cv2
Jun 4 19:46:57 pitopIOT pt-sys-oled[16807]: ModuleNotFoundError: No module named 'cv2'
Jun 4 19:46:57 pitopIOT systemd[1]: pt-sys-oled.service: Main process exited, code=exited, status=1/FAILURE
Jun 4 19:46:57 pitopIOT systemd[1]: pt-sys-oled.service: Failed with result 'exit-code'.
Jun 4 19:46:58 pitopIOT systemd[1]: pt-sys-oled.service: Service RestartSec=100ms expired, scheduling restart.
Jun 4 19:46:58 pitopIOT systemd[1]: pt-sys-oled.service: Scheduled restart job, restart counter is at 5.
Jun 4 19:46:58 pitopIOT systemd[1]: Stopped pi-top OLED system menu.
Jun 4 19:46:58 pitopIOT systemd[1]: pt-sys-oled.service: Start request repeated too quickly.
Jun 4 19:46:58 pitopIOT systemd[1]: pt-sys-oled.service: Failed with result 'exit-code'.
Jun 4 19:46:58 pitopIOT systemd[1]: Failed to start pi-top OLED system menu.
Any ideas on how to fix it?