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

Camera board • rabbit hole getting picamera2 v0.3.15 -> v0.3.16 to work

$
0
0
Chronology of this issue:

1) First had to downgrade to Linux 5.13.32 doe to my camera not having drivers compiled for Linux 6, and latest RPI not detecting it.
2) After I got it working with Picamera2. (some older rev) I wanted to use latest feature (flush param):

Code:

        request = self.picam2.capture_request(flush=timestamp_ns, wait=wait)
with obvious result:

Code:

    request = self.picam2.capture_request(flush=timestamp_ns, wait=wait)TypeError: capture_request() got an unexpected keyword argument 'flush'
3) upgrading picamera2 resulted in:

Code:

    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)
Tried reinstalling libcamera-apps, with same result. In libcamera doc website I read:

Code:

libcamera  v0.2.0+27-6f1bd9cf
Which is much later than the build libcamera-apps installs:

Code:

libcamera-hello --versionlibcamera-apps build: 7e4d3d71867f 17-07-2023 (07:34:42)libcamera build: v0.0.5+83-bde9b04f
So following this old thread on how to build libcamera viewtopic.php?t=324997#p1945368
I run into

Code:

meson.build:3:0: ERROR: Options "raspberrypi" are not in allowed choices:
STDOUT:

Code:

Setting up libgstreamer-plugins-base1.0-dev:armhf (1.18.4-2+deb11u1) ...Cloning into 'libcamera'...remote: Enumerating objects: 37158, done.remote: Total 37158 (delta 0), reused 0 (delta 0), pack-reused 37158Receiving objects: 100% (37158/37158), 7.24 MiB | 2.25 MiB/s, done.Resolving deltas: 100% (28940/28940), done.The Meson build systemVersion: 1.3.1Source dir: /home/juanmf/libcameraBuild dir: /home/juanmf/libcamera/buildBuild type: native buildmeson.build:3:0: ERROR: Options "raspberrypi" are not in allowed choices: "all, auto, imx8-isi, ipu3, rkisp1, rpi/vc4, simple, uvcvideo, vimc"A full log can be found at /home/juanmf/libcamera/build/meson-logs/meson-log.txtWARNING: Running the setup command as `meson [options]` instead of `meson setup 
Created a bug in github for the main issue (importing Picamera2) https://github.com/raspberrypi/picamera2/issues/939

Statistics: Posted by juanmf — Tue Jan 30, 2024 1:24 pm



Viewing all articles
Browse latest Browse all 4833

Trending Articles