Skip to content

Error with camera #4

@stilly518

Description

@stilly518

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.
_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions