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):with obvious result:3) upgrading picamera2 resulted in:Tried reinstalling libcamera-apps, with same result. In libcamera doc website I read: Which is much later than the build libcamera-apps installs:So following this old thread on how to build libcamera viewtopic.php?t=324997#p1945368
I run intoSTDOUT:Created a bug in github for the main issue (importing Picamera2) https://github.com/raspberrypi/picamera2/issues/939
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)
Code:
request = self.picam2.capture_request(flush=timestamp_ns, wait=wait)TypeError: capture_request() got an unexpected keyword argument 'flush'
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)
Code:
libcamera v0.2.0+27-6f1bd9cf
Code:
libcamera-hello --versionlibcamera-apps build: 7e4d3d71867f 17-07-2023 (07:34:42)libcamera build: v0.0.5+83-bde9b04f
I run into
Code:
meson.build:3:0: ERROR: Options "raspberrypi" are not in allowed choices:
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
Statistics: Posted by juanmf — Tue Jan 30, 2024 1:24 pm