Two Camarray HATs. One works and one does not

I have two identical PI5 systems each with a Camarray HAT. The one with 4 IMX519 and one with 4 IMX708. They have identical OS and config (one is an SD clone of the other).

The quad IMX591 works perfectly (see attached script) and the IMX708 always fails.

The problem follows the HAT if I swap the PI they are on.

The error is:

[0:14:15.103750301] [2174] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+246-9fb4698e-dirty (2024-02-27T06:28:07+00:00)
Exception !!!
list index out of range
Exception ignored in: <function Picamera2.del at 0x7ffec8da0900>
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/picamera2/picamera2.py”, line 404, in del
self.close()
File “/usr/lib/python3/dist-packages/picamera2/picamera2.py”, line 604, in close
if self._preview:
^^^^^^^^^^^^^
AttributeError: ‘Picamera2’ object has no attribute ‘_preview’
Exit


(program exited with code: 0)
Press return to continue

The script is:
from picamera2 import Picamera2
try:
picam2 = Picamera2()
camera_config = picam2.create_still_configuration()
picam2.configure(camera_config)
picam2.start()
imgpath = “still.jpg”
picam2.capture_file(imgpath)
picam2.close()
except Exception as e:
print(“Exception !!!”)
print(e)
finally:
print(“Exit”)

I am at my wits end.
What could the issue be?

My fault
Needed to adjust dtoverlay.
Sorry for my confusion

1 Like