|
I seem to be having issues with the i2c and camera
I try to load the client from the terminal and it reads
pi@raspberrypi:~ $ sudo python3 adeept_picar-b/server/server.py
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1OMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _iniamera
self._camera = mo.MMALCamera()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __t__
super(MMALCamera, self).__init__()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __i__
prefix="Failed to create MMAL component %s" % self.component_type)
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_ch
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.came: Out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "adeept_picar-b/server/server.py", line 692, in <module>
camera = picamera.PiCamera() #Camera initialization
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __in_
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _iniamera
"Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-cog' and ensure that the camera has been enabled.
pi@raspberrypi:~ $ __
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __i__
prefix="Failed to create MMAL component %s" % self.component_type)
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_ch
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.came: Out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "adeept_picar-b/server/server.py", line 692, in <module>
camera = picamera.PiCamera() #Camera initialization
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __in_
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _iniamera
"Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-cog' and ensure that the camera has been enabled.
-bash: __: command not found
pi@raspberrypi:~ $ super(MMALCamera, self).__init__()
-bash: syntax error near unexpected token `MMALCamera,'
pi@raspberrypi:~ $ File "/usr/lib/python3/dist-packages/picamera/mmalobj.pyline 633, in __init__
-bash: File: command not found
pi@raspberrypi:~ $ prefix="Failed to create MMAL component %s" % self.coment_type)
-bash: syntax error near unexpected token `)'
pi@raspberrypi:~ $ File "/usr/lib/python3/dist-packages/picamera/exc.py", l 184, in mmal_check
-bash: File: command not found
pi@raspberrypi:~ $ raise PiCameraMMALError(status, prefix)
-bash: syntax error near unexpected token `('
pi@raspberrypi:~ $ picamera.exc.PiCameraMMALError: Failed to create MMAL compnt b'vc.ril.camera': Out of memory
-bash: picamera.exc.PiCameraMMALError:: command not found
pi@raspberrypi:~ $
pi@raspberrypi:~ $ During handling of the above exception, another exception urred:
-bash: During: command not found
pi@raspberrypi:~ $
pi@raspberrypi:~ $ Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
pi@raspberrypi:~ $ File "adeept_picar-b/server/server.py", line 692, in <moe>
-bash: syntax error near unexpected token `newline'
pi@raspberrypi:~ $ camera = picamera.PiCamera() #Camera initization
-bash: syntax error near unexpected token `('
pi@raspberrypi:~ $ File "/usr/lib/python3/dist-packages/picamera/camera.py"ine 431, in __init__
-bash: File: command not found
pi@raspberrypi:~ $ self._init_camera(camera_num, stereo_mode, stereo_decie)
-bash: syntax error near unexpected token `camera_num,'
pi@raspberrypi:~ $ File "/usr/lib/python3/dist-packages/picamera/camera.py"ine 460, in _init_camera
-bash: File: command not found
pi@raspberrypi:~ $ "Camera is not enabled. Try running 'sudo raspi-config
-bash: Camera is not enabled. Try running 'sudo raspi-config' : command not fd
pi@raspberrypi:~ $ picamera.exc.PiCameraError: Camera is not enabled. Try rung 'sudo raspi-config' and ensure that the camera has been enabled.
-bash: picamera.exc.PiCameraError:: command not found
pi@raspberrypi:~ $
so I run the config and enable both the i2c and camera
check finish and reboot
once I reboot I run pi@raspberrypi:~ $ lsmod | grep i2c
i2c_bcm2835 16384 0
i2c_dev 20480 0
but the i2c are both in red, making me think they are not on.
when I run
pi@raspberrypi:~ $ sudo apt-get install i2c tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package i2c
E: Unable to locate package tools
Any thoughts on how to successfully enable them? |
|