Closed SteveEdson closed 7 years ago
It can fail sometimes and also the module has been renamed at some point if I'm not mistaken
Here are the lines I've used for my project some time ago:
modprobe v4l2_common || true
modprobe bcm2835-v4l2 || true
I think actually only the 1st one is needed.
Thanks for the reply. modprobe v4l2_common || true
doesn't error, but the camera still doesn't work:
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
10.02.17 17:14:38 [+0000] mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
10.02.17 17:14:38 [+0000] Traceback (most recent call last):
10.02.17 17:14:38 [+0000] File "capture.py", line 6, in <module>
10.02.17 17:14:38 [+0000] with picamera.PiCamera() as camera:
10.02.17 17:14:38 [+0000] File "/usr/local/lib/python2.7/site-packages/picamera/camera.py", line 415, in __init__
10.02.17 17:14:38 [+0000] self._init_camera(camera_num, stereo_mode, stereo_decimate)
10.02.17 17:14:38 [+0000] File "/usr/local/lib/python2.7/site-packages/picamera/camera.py", line 444, in _init_camera
10.02.17 17:14:38 [+0000] "Camera is not enabled. Try running 'sudo raspi-config' "
10.02.17 17:14:38 [+0000] picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.
Oh wait, I had the camera in the wrong port! Thanks for the help :D
:)
Both of these lines don't error because of the || true
part.
So what did the trick — changing the port or changing the port and the module name?
Both, changing the module name fixed the software issue, the second line still doesn't work but obviously doesn't fail.
Then I had the second issue which made me realize my cable was in the wrong
port. I'd recommend updating the docs/code for the v4l2_common
module.
Thanks again.
On Fri, Feb 10, 2017, 22:39 Eugene Mirotin notifications@github.com wrote:
:)
Both of these lines don't error because of the || true part. So what did the trick — changing the port or changing the port and the module name?
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/resin-io-projects/resin-rpi-python-picamera/issues/5#issuecomment-279086183, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJXKPWQuraQEhG-8MwnXAOcYsGjoKJkks5rbOcWgaJpZM4L9jtk .
OK got you, thanks
Getting this issue with a PI 3:
Any ideas? Checked that
start_x=1
andgpu_mem=128
Thanks