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

Camera board • Re: V2 camera coding stopped working

$
0
0
Hi,

I still have the same issue after upgrading libcamera-apps.

Code:

$ sudo apt-get install libcamera-appsReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages will be upgraded:  libcamera-apps1 upgraded, 0 newly installed, 0 to remove and 260 not upgraded.Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libcamera-apps armhf 1.2.1-1 [282 kB]...Unpacking libcamera-apps (1.2.1-1) over (0~git20230125+9f08463-1) ...Setting up libcamera-apps (1.2.1-1) ...Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
When I import from picamera2:

Code:

Traceback (most recent call last):...    import picamera2 as Picam2  File "/usr/local/lib/python3.9/dist-packages/picamera2/__init__.py", line 9, in <module>    from .picamera2 import Picamera2, Preview  File "/usr/local/lib/python3.9/dist-packages/picamera2/picamera2.py", line 24, in <module>    import picamera2.utils as utils  File "/usr/local/lib/python3.9/dist-packages/picamera2/utils.py", line 1, in <module>    from libcamera import ColorSpace, Orientation, Rectangle, Size, TransformImportError: cannot import name 'Orientation' from 'libcamera' (/usr/lib/python3/dist-packages/libcamera/__init__.py)
Any idea on how to fix?

Statistics: Posted by juanmf — Tue Jan 30, 2024 2:17 am



Viewing all articles
Browse latest Browse all 8035

Trending Articles