Question: I have Raspberry pi 6 4 - bit bullseye system. I want to make my raspberry pi camera module 2 to work so this is
I have Raspberry pi bit bullseye system. I want to make my raspberry pi camera module to work so this is the code I used to check if the raspberry pi camera works.
The code I used:
from picamera import Picamera
picam Picamera
picamstartandrecordvideotestmp duration
This works well when I used Thonny application but I seem to have a problem when I run this in Pycharm. Error is No module named 'libcamera'. So this is what I tried to do to fix the problem:
I did this with the virtual environment in pycharm:
sudo apt install y libcameradev
pip install rpilibcamera
Error:
Problem encountered: This package works with libcamera version vbd but you have version vbdebf installed. Please check the readme for help with this error
A full log can be found at tmppipinstalldqtoekrpilibcameraadbaeafddcfmesonpybrvffmesonlogsmesonlogtxt
end of output
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadatagenerationfailed
times Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
From what i gathered, installing libcamera in a virtual environment seems to be tricky but I really need to use pycharm for my project. Please take note that picamera seems to be the latest version for the raspberry pi camera to work. I hope you can show me the steps on how to fix my libcamera installation within a virtual environment. I am using python language
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
