Open JGB-lab opened 10 months ago
Hi, thanks for raising this. Really this is a libcamera issue, nothing that Picamera2 can do anything about. Maybe you could post it here https://github.com/raspberrypi/libcamera? Thanks!
Thank you! I will post it on libcamera2 in a few days.
Bug (or misconfiguration) description: The hardware system I'm using (RPi4B, V2.1 camera and connection cable) has been working properly for a long time with Raspbian Buster OS and Python 3.7. A couple of weeks ago, I updated the system to Raspberry OS BookWorm and Python 3.11 (the latest system image downloaded from the official website). When starting to update the old applications, mainly replacing picamera with picamera2, the following warnings appear, which seem to indicate an incompatibility issue between the OS configuration and the picamera2 library. I found quite a bit of information about some of these warnings, but not the solution.
Inputs and outputs:
from picamera2 import Picamera2, Preview
input('Press ENTER to begin')
picam2 = Picamera2() picam2.start_preview(True) preview_config = picam2.create_preview_configuration() picam2.configure(preview_config) picam2.start()
input('Press ENTER to finish') picam2.stop_preview()
To Reproduce Run the command and application mentioned above in the same context
Expected behaviour There shouldn't be any information or warning because it should be properly preconfigured, especially regarding warnings.
Console Output, Screenshots N/A
Hardware : Raspberry Pi 4B, 4 GB Two Rasperry V2 cameras where tested, normal and NoIR. Connection cable test is OK. SSD Disk mounted, USB connetion. Additional SD card to backup system.
Additional context Newly installed OS from scratch. Last image (2024-01-015) download from official Raspberry Pi site. Debian BookWorm 64 bits and Python 3.11 The only action taken before the picamera2 test was an upgrade.