unionftr
Posts: 1
Joined: Sat May 18, 2019 1:20 am

PiCameraError: Camera is not enabled

Sat May 18, 2019 2:01 am

I just purchased a Raspberry Pi 3 Model B+ and a Raspberry Pi Camera Module V2 camera.
I am running NOOBS 3.0.1 and ran all the updates whe I first installed the software.
I ran the sudo apt-get update and sudo apt-get upgrade commands successfully.
I also ran the sudo raspi-config command and enabled the camera.
I rebooted my Raspberry Pi.
I ran the following in Python:
from picamera import PiCamera
from time import sleep

camera = PiCamera()

camera.start_preview()
sleep(10)
camera.stop_preview()

and get the below error
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

I triple checked that the ribbon cable is installed correctly.

When I run the vcgencmd get_camera command, I always get supported=1 detected=0.

I am very new to Raspberry Pi, so any help would be greatly appreciated.

Return to “Camera board”