Issue with compatibility picamera
Opened this issue · 1 comments
JolleJolles commented
I am trying to use runp with a python script that runs the camera on a raspberrypi with picamera. Although this works with python and in the script, I always get an error with runp:
picamera.exc.PiCameraRuntimeError: Cannot query frame information when camera is not recording
The script is as simple as
from picamera import PiCamera
from time import sleep
def test():
camera = PiCamera()
camera.start_preview()
camera.start_recording('/home/pi/video.h264')
sleep(10)
camera.stop_recording()
camera.stop_preview()
and the code I run: runp test.py test
JolleJolles commented
By running import picamera
and then calling picamera.PiCamera()
it does work so it it to do with how the libraries are loaded?