Traceback (most recent call last):


 "/lib/python3.6/site-packages/PIL/Image.py", line 1627, in putalpha

self.im.setmode(mode)
ValueError: image has wrong mode

Traceback (most recent call last):


 "./coursera-dl", line 11, in <module>

sys.exit(main())


 "~/.local/lib/python3.5/site-packages/coursera/coursera_dl.py", line 237, in main

error_occured, completed = download_class(args, class_name)


 "~/.local/lib/python3.5/site-packages/coursera/coursera_dl.py", line 212, in download_class

return download_on_demand_class(args, class_name)


 "~/.local/lib/python3.5/site-packages/coursera/coursera_dl.py", line 125, in download_on_demand_class

extractor = CourseraExtractor(session, args.username, args.password)


 "~/.local/lib/python3.5/site-packages/coursera/extractors.py", line 31, in __init__

login(session, username, password)


 "~/.local/lib/python3.5/site-packages/coursera/cookies.py", line 145, in login

headers=headers, allow_redirects=False)


 "~/.local/lib/python3.5/site-packages/requests/sessions.py", line 560, in post

return self.request('POST', url, data=data, json=json, **kwargs)


 "~/.local/lib/python3.5/site-packages/requests/sessions.py", line 513, in request

resp = self.send(prep, **send_kwargs)


 "~/.local/lib/python3.5/site-packages/requests/sessions.py", line 623, in send

r = adapter.send(request, **kwargs)


 "~/.local/lib/python3.5/site-packages/requests/adapters.py", line 440, in send

timeout=timeout


 "~/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 565, in urlopen

timeout_obj = self._get_timeout(timeout)


 "~/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 308, in _get_timeout

return Timeout.from_float(timeout)


 "~/.local/lib/python3.5/site-packages/requests/packages/urllib3/util/timeout.py", line 154, in from_float

return Timeout(read=timeout, connect=timeout)


 "~/.local/lib/python3.5/site-packages/requests/packages/urllib3/util/timeout.py", line 97, in __init__

self._connect = self._validate_timeout(connect, 'connect')


 "~/.local/lib/python3.5/site-packages/requests/packages/urllib3/util/timeout.py", line 127, in _validate_timeout

"int or float." % (name, value))
ValueError: Timeout value connect was Timeout(connect=None, read=None, total=None), but it must be an int or float.
