Hello I am fairly new to Linux and raspberry pi. I’m building my girlfriend a printer camera and the code needs picamera2 to work.
I’m having the issue where when I try to run the code it doesn’t find the module. Even tho it is installed.
The exact error :
from picamera2 import Picamera2, Preview
ModuleNotFoundError: No module named ‘picamera2’
Raspberry pi Zero 2W
OS : 32-bit bookworm desktop
I am running it inside a VN and I even tried to install it but the message says: python3-picamera2 is already the newest (0.3.19-1).
Can’t install it with pip, it sends metadata-generation-failed
I have been struggling for the past 2 days and nothing I found online works. Maybe the code isn’t well written I don’t really know.
Source of the code : https://github.com/carolynz/poetry-camera-rpi
It’s main.py
Olivier is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.