Siema.
Mam problem z kamerką w raspberry pi 3, ponieważ występuje błąd przy importowaniu biblioteki 'picamera'.
Kod python:
from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.stop_preview()
Kod błędu:
Traceback (most recent call last):
File "/home/pi/Desktop/camera.py", line 1, in <module>
from picamera import PiCamera
File "/usr/local/lib/python3.9/dist-packages/picamera/__init__.py", line 72, in <module>
from picamera.exc import (
File "/usr/local/lib/python3.9/dist-packages/picamera/exc.py", line 41, in <module>
import picamera.mmal as mmal
File "/usr/local/lib/python3.9/dist-packages/picamera/mmal.py", line 49, in <module>
_lib = ct.CDLL('libmmal.so')
File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory