-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I used Windows Notepad to open the install.sh file and then partially paste the code of this file during installation due to my network issues. In the end, I successfully executed all the commands and checked them without any errors.
My PiDNG library was installed using the following link for teaching: https://github.com/schoolpost/PiDNG )
I downloaded all the DCP files using this link and renamed them as basic, neutral, and skin and sky, and finally placed them in the profiles folder: https://github.com/davidplowman/Colour_Profiles/raw/master/imx477 )
(I also installed the keyboard module and ImageTk module myself based on the error message. The commands used were: pip3 install keyboard, sudo apt-get install python3 pil python3 pil. imagetk)
But the error message displayed when I finally ran the program camera.py is:
% Run camera. py
Mmal: mmal_ VC_ Component_ Enable: failed to enable component: ENOSPC
Traceback (most recent call last):
File "/home/pi/camera/camera. py", line 22, in
Camera. resolution=camera MAX_ Resolution
File "/usr/lib/python3/dist packages/picamera/camera. py", line 2282, in_ Set_ Resolution
Self_ Enable_ Camera()
File "/usr/lib/python3/dist packages/picamera/camera. py", line 1976, in_ Enable_ Camera
Self_ Camera. enable()
File "/usr/lib/python3/dist packages/picamera/mmalobj. py", line 724, in enable
Prefix="Failed to enable component")
File "/usr/lib/python3/dist packages/picamera/exc. py", line 184, in mmal_ Check
Raise PiCameraMMALError (status, prefix)
Picamera. exc. PiCameraMMALError: Failed to enable component: Out of resources
I tried adding a line of code 'camera. close()' before line 22, but it didn't work
My camera can execute the command raspistill - v normally and display a preview window
My system is:
Linux raspberrypi 4.19.97-v7l+# 1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
I don't know what to do, please help me