Traceback (most recent call last):


 "/var/folders/x2/drqpb67n01n4225h701ht8l80000gn/T/ansible_r1m8tgtj/ansible_modlib.zip/ansible/module_utils/urls.py", line 971, in fetch_url

follow_redirects=follow_redirects)


 "/var/folders/x2/drqpb67n01n4225h701ht8l80000gn/T/ansible_r1m8tgtj/ansible_modlib.zip/ansible/module_utils/urls.py", line 886, in open_url

r = urllib_request.urlopen(*urlopen_args)


 "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 162, in urlopen

return opener.open(url, data, timeout)


 "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 463, in open

req = meth(req)


 "/var/folders/x2/drqpb67n01n4225h701ht8l80000gn/T/ansible_r1m8tgtj/ansible_modlib.zip/ansible/module_utils/urls.py", line 654, in http_request

tmp_ca_cert_path, paths_checked = self.get_ca_certs()


 "/var/folders/x2/drqpb67n01n4225h701ht8l80000gn/T/ansible_r1m8tgtj/ansible_modlib.zip/ansible/module_utils/urls.py", line 597, in get_ca_certs

os.write(tmp_fd, DUMMY_CA_CERT)
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner

self.run()


 "/usr/lib/python2.7/threading.py", line 754, in run

self.__target(*self.__args, **self.__kwargs)


 "/usr/local/lib/python2.7/dist-packages/imutils/video/pivideostream.py", line 42, in update

self.camera.close()


 "/usr/local/lib/python2.7/dist-packages/picamera/camera.py", line 745, in close

self._splitter.close()


 "/usr/local/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2400, in close

self.disconnect()


 "/usr/local/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2439, in disconnect

self.inputs[0].disconnect()


 "/usr/local/lib/python2.7/dist-packages/picamera/mmalobj.py", line 1311, in disconnect

self.connection.close()


 "/usr/local/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2161, in close

super(MMALConnection, self).close()
TypeError: super() argument 1 must be type, not None
