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

Python • Pi5 picamera2 error

$
0
0
I connected 1 IMX219 v2 to Pi5. bathroom
The python modules were imported into the virtual environment, but the
accessing and using picamera2 fails. Please help me because I have been struggling for a long time.
What am I doing wrong, how can I fix it?
--

Code:

[5:35:40.769555566] [13015]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+120-eb00c13dTraceback (most recent call last):  File "/home/wt/repos/pytest/picam2/gemini_camera.py", line 10, in <module>    picam2 = Picamera2()             ^^^^^^^^^^^  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 245, in __init__    camera_num = self.global_camera_info()[camera_num]['Num']                 ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
IndexError: list index out of range

Statistics: Posted by wapplertibor — Tue Apr 23, 2024 12:25 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles