[BUG] Camera __init__ sequence did not complete
See original GitHub issueAfter installing picamera2 as suggested I also had to install libcamera from source (and thus kmsxx and all the dependencies). I now have a working libcamera installation and all the cli commands provide images.
After trying the following code
from picamera2 import Picamera2, Preview
ppcam = Picamera2()
ppcam.start()
I have this
[0:07:42.544557834] [1455] INFO IPAManager ipa_manager.cpp:138 libcamera is not installed. Adding ‘/home/pi/libcamera/build/src/ipa’ to the IPA search path [0:07:42.545470529] [1455] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3630-d0b310b4 [0:07:42.554329995] [1459] INFO IPAProxy ipa_proxy.cpp:130 libcamera is not installed. Loading IPA configuration from ‘/home/pi/libcamera/src/ipa/raspberrypi/data’ [0:07:42.563849801] [1459] INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media2 and ISP device /dev/media0 2022-06-09T10:41:06.356Z | ERROR | Camera init sequence did not complete. Traceback (most recent call last): File “/home/pi/.local/lib/python3.9/site-packages/picamera2/picamera2.py”, line 77, in init self.open_camera() File “/home/pi/.local/lib/python3.9/site-packages/picamera2/picamera2.py”, line 164, in open_camera if self.initialize_camera(): File “/home/pi/.local/lib/python3.9/site-packages/picamera2/picamera2.py”, line 148, in initialize_camera self.sensor_resolution = self.camera.properties[“PixelArraySize”] KeyError: ‘PixelArraySize’
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “/home/pi/cam.py”, line 3, in <module> ppcam = Picamera2() File “/home/pi/.local/lib/python3.9/site-packages/picamera2/picamera2.py”, line 81, in init raise RuntimeError(“Camera init sequence did not complete.”) RuntimeError: Camera init sequence did not complete.
I just don’t know what to do, if anyone has any ideas I would be grateful ! Thanks
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top GitHub Comments
No problem. BTW, you can definitely ignore that particular “test pattern” error, I think we’ve suppressed it in libcamera now so it should disappear once we catch up with mainline again.
Yes, I’m afraid the README for this repository mentions that you have to change a couple of things in the standard instructions. We are starting to work on documentation, but things are all a bit bleeding edge at the moment. Maybe we should update the standard instructions, I guess we haven’t totally decided whether to curate our own branch of libcamera permanently (we don’t really want to).
Is there any reason you can’t do the default install (again from this repository’s README)? I believe everything works on 64-bit.