
Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1615, in full_dispatch_request

return self.finalize_request(rv)


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1632, in finalize_request

response = self.process_response(response)


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1858, in process_response

self.save_session(ctx.session, response)


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 924, in save_session

return self.session_interface.save_session(self, session, response)


 "/usr/local/lib/python3.6/site-packages/flask/sessions.py", line 363, in save_session

val = self.get_signing_serializer(app).dumps(dict(session))


 "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 565, in dumps

payload = want_bytes(self.dump_payload(obj))


 "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 847, in dump_payload

json = super(URLSafeSerializerMixin, self).dump_payload(obj)


 "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 550, in dump_payload

return want_bytes(self.serializer.dumps(obj))


 "/usr/local/lib/python3.6/site-packages/flask/sessions.py", line 85, in dumps

return json.dumps(_tag(value), separators=(',', ':'))


 "/usr/local/lib/python3.6/site-packages/flask/json.py", line 123, in dumps

rv = _json.dumps(obj, **kwargs)


 "/usr/local/lib/python3.6/site-packages/simplejson/__init__.py", line 399, in dumps

**kw).encode(obj)


 "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 296, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 378, in iterencode

return _iterencode(o, 0)


 "/usr/local/lib/python3.6/site-packages/flask/json.py", line 80, in default

return _json.JSONEncoder.default(self, o)


 "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 273, in default

o.__class__.__name__)
TypeError: Object of type PermissionError is not JSON serializable

Traceback (most recent call last):


 "/usr/local/lib/python3.5/dist-packages/vidgear/gears/pigear.py", line 147, in __init__

if not(self.frame is None and self.color_space is None): self.frame = cv2.cvtColor(self.frame, self.color_space)
TypeError: an integer is required (got type NoneType)
