The stream consists of frames coming from a raspberry pi camera.
stream.py needs to be changed:
import sys import cv2 from picamera.array import PiRGBArray