Question: I am currently running Raspberry pi 6 4 - bit OS ( bookworm ) . I am trying to make the raspberry pi camera to
I am currently running Raspberry pi bit OS bookworm I am trying to make the raspberry pi camera to work using pycharms with python language. Please take note that the old picamera doesn't seem to work on the latest versions of Raspberry pi which is why Im using picamera A lot of changes has happened with the new versions of raspbery pi
Please help me fix this error. I hope this can be fixed within pycharm since Im working a project in it
These are the commands I use to install the dependencies I have used the virtual environment within Pycharms:
sudo apt fullupgrade
sudo reboot
sudo aptget install libcameradev
pip install upgrade pip setuptools wheel
pip install picamera
pip install rpilibcamera
The code:
from picamera import Picamera
picam Picamera
The Error:
Traceback most recent call last:
File homepipycharmProjecttestvenvlibpythonsitepackagespicamerapreviewsdrmpreview.py line in
import kms as pykms
ModuleNotFoundError: No module named kms
During handling of the above exception, another exception occurred:
Traceback most recent call last:
File homepipycharmProjecttestmainpy line in
from picamera import Picamera
File homepipycharmProjecttestvenvlibpythonsitepackagespicamerainitpy line in
from picamera import Picamera Preview
File homepipycharmProjecttestvenvlibpythonsitepackagespicamerapicamerapy line in
from picamerapreviews import DrmPreview, NullPreview, QtGlPreview, QtPreview
File homepipycharmProjecttestvenvlibpythonsitepackagespicamerapreviewsinitpy line in
from drmpreview import DrmPreview
File homepipycharmProjecttestvenvlibpythonsitepackagespicamerapreviewsdrmpreview.py line in
import pykms
ModuleNotFoundError: No module named pykms
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
