Traceback (most recent call last):


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/master.py", line 86, in run_loop

loop()


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/main_loop.py", line 286, in run

self._run()


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/main_loop.py", line 384, in _run

self.event_loop.run()


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/main_loop.py", line 1484, in run

reraise(*exc_info)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/compat.py", line 58, in reraise

raise value


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/events.py", line 88, in _run

self._context.run(self._callback, *self._args)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/raw_display.py", line 404, in <lambda>

event_loop, callback, self.get_available_raw_input())


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/raw_display.py", line 502, in parse_input

callback(processed, processed_codes)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/main_loop.py", line 411, in _update

self.process_input(keys)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/main_loop.py", line 511, in process_input

k = self._topmost_widget.keypress(self.screen_size, k)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/tools/console/window.py", line 309, in keypress

k = super().keypress(size, k)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/container.py", line 1131, in keypress

return self.body.keypress( (maxcol, remaining), key )


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/tools/console/window.py", line 44, in keypress

ret = super().keypress(size, key)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/urwid/container.py", line 1131, in keypress

return self.body.keypress( (maxcol, remaining), key )


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/tools/console/options.py", line 283, in keypress

return self.focus_item.keypress(tsize, key)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/tools/console/options.py", line 177, in keypress

d = self.master.options.parse_setval(foc.opt.name, v)


 "/usr/local/Cellar/mitmproxy/4.0.4/libexec/lib/python3.7/site-packages/mitmproxy/optmanager.py", line 332, in parse_setval

if o.typespec in (str, typing.Optional[str]):
AttributeError: 'str' object has no attribute 'typespec'

Traceback (most recent call last):


 "/usr/bin/youtube-dl", line 8, in <module>

sys.exit(main())


 "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 474, in main

_real_main(argv)


 "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 464, in _real_main

retcode = ydl.download(all_urls)


 "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2018, in download

url, force_generic_extractor=self.params.get('force_generic_extractor', False))


 "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info

ie_result = ie.extract(url)


 "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract

ie_result = self._real_extract(url)


 "/usr/lib/python2.7/site-packages/youtube_dl/extractor/dailymotion.py", line 235, in _real_extract

'password: "%s"' % self._downloader.params.get('videopassword') if password else None)


 "/usr/lib/python2.7/site-packages/youtube_dl/extractor/dailymotion.py", line 50, in _call_api

cookies = self._get_dailymotion_cookies()


 "/usr/lib/python2.7/site-packages/youtube_dl/extractor/dailymotion.py", line 31, in _get_dailymotion_cookies

return self._get_cookies('https://www.dailymotion.com/')


 "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 2831, in _get_cookies

return compat_cookies.SimpleCookie(req.get_header('Cookie'))


 "/usr/lib/python2.7/Cookie.py", line 583, in __init__

if input: self.load(input)


 "/usr/lib/python2.7/Cookie.py", line 643, in load

for k, v in rawdata.items():
AttributeError: 'unicode' object has no attribute 'items'
