RPi update 5/1/2025 included lib camera and killed my ArduCam that was working

Here is the error @frontyard:/usr/camera $ python stream_server.py [0:00:58.772025723] [2786] INFO Camera camera_manager.cpp:326 libcamera v0.5.0+59-d83ff0a4 [0:00:58.801764408] [2853] WARN CameraSensorProperties camera_sensor_properties.cpp:473 No static properties available for 'arducam-pivariety' [0:00:58.801862297] [2853] WARN CameraSensorProperties camera_sensor_properties.cpp:475 Please consider updating the camera sensor properties database [0:00:58.812646779] [2853] ERROR IPAProxy ipa_proxy.cpp:171 Configuration file 'arducam-pivariety.json' not found for IPA module 'rpi/vc4' [0:00:58.817724593] [2853] ERROR IPARPI ipa_base.cpp:150 Could not create camera helper for arducam-pivariety [0:00:58.817999834] [2853] ERROR RPI pipeline_base.cpp:814 Failed to load a suitable IPA library [0:00:58.818070167] [2853] ERROR RPI vc4.cpp:216 Failed to register camera arducam-pivariety 10-000c: -22 Traceback (most recent call last): File "/usr/camera/stream_server.py", line 143, in <module> picam2 = Picamera2() ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 281, in __init__ camera_num = self.global_camera_info()[camera_num]['Num'] ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ IndexError: list index out of range

1 Like

Hi @douglas, I am pretty new to this stuff, and yesterday I saw the available apt update for libcamera-0.5, and I hesitated to update.

What specific camera(s) and Pi model are you using?

Even though most of this stuff is over my head, I am chiming in here since 1) it might eventually affect me (thankfully, I didn’t update yesterday), and 2) you may not hear from Arducam (like @Dion) for a few days since it is a national holiday in Hong Kong from May 1 to May 5.

Arducam’s version of libcamera is a fork of the offical libcamera. So I think that means you never want to install the Raspi official versions of these packages, and instead need to wait for Arducam to update their forks to be compatible with the new versions? Someone please correct me if I’m wrong

If you installed your previously working libcamera from the install_pivariety_pkgs.sh script from Arducam, did you try to revert back to the older working versions by re-running install_pivariety_pkgs.sh (with the arguments described in the above link)? Hopefully, it won’t be some sort of dependency hell, where you can’t revert to the old version due to some new dependency created from recent updates.

I tried reinstalling the Arducam software, no help. The RPi is a model 4 running 64 bit raspbian. It is frustrating because it took a long time for me to get it up and running stable. Ah well I may just zap the boot disk and start over…
Thanks for the hint. If I find a solution or even what caused it to fail, I will post here.

That sounds frustrating and I’m scared it will happen to me one day! I have to figure out how to backup my raspi config so I can reproduce my environment.

After you tried reinstalling the Arudcam software, did you reboot? Is your camera detected with libcamera-still --list ?

What is the output of apt list --installed | grep libcamera ? That would check if the installed packages actually reverted back to Arudcam’s 0.4 version

Here are the updates:
libcamera-dev/stable,now 0.5.0+rpt20250429-1 arm64 [installed]
libcamera-ipa/stable,now 0.5.0+rpt20250429-1 arm64 [installed]
libcamera-tools/stable,now 0.5.0+rpt20250429-1 arm64 [installed]
libcamera0.4/now 0.4.0+rpt20250214-1 arm64 [installed,local]
libcamera0.5/stable,now 0.5.0+rpt20250429-1 arm64 [installed,automatic]

It doesn’t look like ./install_pivariety_pkgs.sh was able to downgrade back, since there are the four 0.5’s in your output above.

Did you run both of the below?

./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps

If you already did that, maybe you can try apt removing the 0.5 packages (and you may (?) also have to remove rpicam-apps if that was also upgraded), and then re-run the two above installer commands. Not sure if it will work, but if you are already thinking about zapping the boot disk, maybe it’s worth trying first.

Hopefully we’ll get an update from Arducam on this issue and / or they will update their fork after they return from the holidays.

Hi @Dion,

Is it safe to update to libcamera-0.5? I am hesitant to update my system right now because of OP’s post.

Do you have any estimate of when Arudcam be releasing the updated drivers that work with 0.5?

Hi @simplesimon
Just go ahead. We updated the libcamera-0.5 last week.

2 Likes

I updated raspi to all of the latest packages. libcamera-still “worked” (showed a video feed), but the auto-focus did not work. That is not surprising since this page says that the autofocus for Arducam pivariety cameras is added by Arducam’s fork).

After re-running the install_pivariety scripts, the latest 05062025 version is now installed and now everything seems to be working.

Hi @simplesimon
Thank you for your feedback :))

Hi @Dion,

The drivers seem to be broken for B0444 (IMX462) on 2025-05-06-raspios-bookworm-arm64 and also the latest 2025-05-13-raspios-bookworm-arm64 images (on Raspberry Pi 4). Capturing an image fails and the resolution in the advertised mode seems unusually high:

null@raspberrypi:~ $ libcamera-hello --list
Available cameras
-----------------
0 : arducam-pivariety [1920x1080 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/arducam_pivariety@c)
    Modes: 'SRGGB10_CSI2P' : 2147485568x1080 [30.00 fps - (65535, 65535)/65535x65535 crop]

null@raspberrypi:~ $ libcamera-still -o test.jpg -n 1
[0:03:45.688075074] [1766]  INFO Camera camera_manager.cpp:326 libcamera v0.5.0+86-e6bc23ae-dirty (2025-07-07T06:13:42BST)
[0:03:57.786716747] [1769] ERROR IPAProxy ipa_proxy.cpp:171 Configuration file 'arducam-pivariety.json' not found for IPA module 'rpi/vc4'
[0:04:02.439655985] [1769]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:04:02.443360574] [1769]  INFO RPI vc4.cpp:455 Registered camera /base/soc/i2c0mux/i2c@1/arducam_pivariety@c to Unicam device /dev/media1 and ISP device /dev/media2
[0:04:02.443646796] [1769]  INFO RPI pipeline_base.cpp:1160 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 960:540:12:P
    SRGGB10_CSI2P,2147485568x1080/0 - Score: 1.28253e+09
Stream configuration adjusted
[0:04:02.447951293] [1766] ERROR Camera camera.cpp:1193 Can't configure camera with invalid configuration
ERROR: *** failed to configure streams ***
null@raspberrypi:~ $ sudo apt list --installed | grep libcamera
libcamera-dev/now 0.5.0+rpt20250707-4 arm64 [installed,local]
libcamera-ipa/now 0.5.0+rpt20250707-4 arm64 [installed,local]
libcamera-tools/stable,now 0.5.0+rpt20250429-1 arm64 [installed]
libcamera0.5/now 0.5.0+rpt20250707-4 arm64 [installed,local]
libspa-0.2-libcamera/now 1.2.7-1~bpo12+1+rpt3 arm64 [installed,upgradable to: 1.2.7-1~bpo12+1+rpt5]
pipewire-libcamera/now 1.2.7-1~bpo12+1+rpt3 all [installed,upgradable to: 1.2.7-1~bpo12+1+rpt5]
python3-libcamera/stable,now 0.5.0+rpt20250429-1 arm64 [installed]

Hi,
Please refer to the following discussion to update the firmware of your camera module.

Let me know if the problem persists after these steps.

2 Likes