question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Camera __init__ sequence did not complete

See original GitHub issue

After 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
davidplowmancommented, Jun 9, 2022

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.

1reaction
davidplowmancommented, Jun 9, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Camera __init__ sequence did not complete. #300 - GitHub
I tried initializing the camera on a fresh script but the moment the interpreter runs Picamera2(), this error is thrown. I am at...
Read more >
Problem trying to install picamera2 - Raspberry Pi Cameras
raise RuntimeError(“The camera init sequence was not completed.”) RuntimeError: The init sequence of the camera was not completed.
Read more >
Common errors using the Raspberry Pi camera module
Are you trying to use the Raspberry Pi camera module, Python, and the picamera library? Did you run in to an error message?...
Read more >
Cameras Suddenly Not Found [3B Bullseye HQ]
Hi, I worked through all the challenges of the bullseye transition using my 3B Pi and got my camera working using Picamera2.
Read more >
Raspberry Pi Error with picamera.exc.PiCameraMMALError ...
I was trying to execute Pi Camera Python program from Thonny IDE ... PiCameraMMALError: Failed to enable connection: Out of resources error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found