Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • Unable to use picamera2 in a python program

$
0
0
I've been struggling to use the picamera2 package on my Raspberry Pi 5 Model B. Whenever I import it, the program is unable to run with the error:
ImportError: libcamera.so.0.3: cannot open shared object file: No such file or directory

I've made sure to run

Code:

sudo apt update
and

Code:

sudo apt full-upgrade
, however this hasn't changed anything. If I could get some insight into wether I should be using a different package or if I've made a simple mistake I'd be very grateful.

My import statement, if that could help:

Code:

from picamera2 import Picamera2
I'm running Rasberry Pi OS Bookworm, and I am certain my camera is working as I was able to view the feed through rpicam-hello. I'm also running using a "venv".

Statistics: Posted by rowandev — Sun Feb 02, 2025 3:43 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles