Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with camera #4

Open
stilly518 opened this issue Mar 3, 2019 · 0 comments
Open

Error with camera #4

stilly518 opened this issue Mar 3, 2019 · 0 comments

Comments

@stilly518
Copy link

Please help. I know that the camera is enabled and have tested it. However, when I run server.py I get this in return.

_root@raspberrypi:/home/Adeept_PiCar-A/server# python server.py
server.py:246: SyntaxWarning: name 'b_spd' is used prior to global declaration
global b_spd
server.py:247: SyntaxWarning: name 't_spd' is used prior to global declaration
global t_spd
dir_mid=425

dis_mid=425

b_spd=100

t_spd=100

left=30

right=30

mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
File "server.py", line 366, in
camera=picamera.PiCamera()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 431, in init
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 460, in _init_camera
"Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.
_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant