Closed keith-keycafe closed 1 year ago
I would avoid upgrading with pip, because you can get a version that's incompatible with other system libraries (libcamera). This is exactly why things are failing. If you use apt, everything gets upgraded together.
So I think you need to uninstall the pip version, and get the proper apt update process to work. What do the following output?
apt list python3-picamera2
sudo apt update
apt list --upgradable
I'm on this and I tried your commands:
pi@omni-demo:~ $ apt list python3-picamera2 Listing... Done python3-picamera2/oldstable,now 0.3.12-2 all [installed] pi@omni-demo:~ $ sudo apt update Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB] Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB] Fetched 337 kB in 1s (425 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. pi@omni-demo:~ $ apt list --upgradable Listing... Done pi@omni-demo:~ $
@XECDesign Hi, I don't suppose you could comment on what's wrong here? The new packages don't seem to be showing up. Thanks!
Because bullseye is a legacy release and is only going to be getting critical security fixes.
Ah, thanks for that. It sounds like upgrading to Bookworm is best, if that's possible. Alternatively, I suppose you could check out the 0.3.12 tag directly and cherry-pick this fix. Would that help?
Thanks for the assistance!
Unfortunately we have devices in remote locations so doing fresh installs with Bookworm isn't possible, and it seems that attempting an in-place upgrade from Bullseye is unsupported and very likely to cause problems. I will try cherry-picking the FfmpegOutput fix.
The following is how I installed 0.3.12 with the FfmpegOutput fix on Bullseye, in case anyone else is having the same issue:
sudo apt remove -y python3-picamera2
git clone --branch v0.3.12 -- https://github.com/raspberrypi/picamera2.git
git -C picamera2 cherry-pick 6b2464c
pip install -e picamera2
Thanks again for the help.
Describe what it is that you want to accomplish I've been having an issue with video recording not stopping when using
FfmpegOutput
with audio, which I believe is fixed in the 0.3.14 release. However I'm struggling to upgrade to this version. I've tried the usualsudo apt update && sudo apt upgrade
, as well assudo apt full-upgrade
andsudo apt install python3-picamera2
, but it doesn't find the new version:Describe alternatives you've considered I was able to upgrade to 0.3.14 using pip, but then I was getting the following error:
I think the libcamera and picamera2 libraries were on conflicting versions.
I also tried
sudo rpi-update
to update the kernel, but it's still telling me 0.3.12-2 is the most recent version.Re-imaging with a different OS isn't an option, so I'm hoping that isn't required.
Additional context We're using 64-bit lite Raspberry Pi OS (Bullseye) on compute module 4
Before
sudo rpi-update
:After
sudo rpi-update
:Python on version 3.9.2
Any help would be appreciated!