Traceback (most recent call last):


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__

return self.application(environ, start_response)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 157, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/base.py", line 124, in get_response

response = self._middleware_chain(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/utils/deprecation.py", line 140, in __call__

response = self.get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response

six.reraise(exc_type, exc_value, tb)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/Users/sarit/.pyenv/versions/3.6.3/lib/python3.6/contextlib.py", line 52, in inner

return func(*args, **kwds)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view

return view_func(*args, **kwargs)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/viewsets.py", line 90, in view

return self.dispatch(request, *args, **kwargs)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch

response = self.handle_exception(exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception

self.raise_uncaught_exception(exc)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch

response = handler(request, *args, **kwargs)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/mixins.py", line 22, in create

headers = self.get_success_headers(serializer.data)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/serializers.py", line 533, in data

ret = super(Serializer, self).data


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/serializers.py", line 264, in data

self._data = self.to_representation(self.validated_data)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/rest_framework/serializers.py", line 500, in to_representation

ret[field.field_name] = field.to_representation(attribute)


 "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/djmoney/contrib/django_rest_framework/fields.py", line 16, in to_representation

return super(MoneyField, self).to_representation(obj.amount)
AttributeError: 'decimal.Decimal' object has no attribute 'amount'

Traceback (most recent call last):


 "/usr/local/bin/streamlink", line 11, in <module>

load_entry_point('streamlink==0.2.0', 'console_scripts', 'streamlink')()


 "/Library/Python/2.7/site-packages/streamlink_cli/main.py", line 899, in main

handle_url()


 "/Library/Python/2.7/site-packages/streamlink_cli/main.py", line 479, in handle_url

streams = fetch_streams(plugin)


 "/Library/Python/2.7/site-packages/streamlink_cli/main.py", line 392, in fetch_streams

sorting_excludes=args.stream_sorting_excludes)


 "/Library/Python/2.7/site-packages/streamlink/plugin/plugin.py", line 316, in get_streams

return self.streams(*args, **kwargs)


 "/Library/Python/2.7/site-packages/streamlink/plugin/plugin.py", line 230, in streams

ostreams = self._get_streams()


 "/Library/Python/2.7/site-packages/streamlink/plugins/twitch.py", line 532, in _get_streams

return self._get_hls_streams("live")


 "/Library/Python/2.7/site-packages/streamlink/plugins/twitch.py", line 496, in _get_hls_streams

streams = HLSStream.parse_variant_playlist(self.session, url)


 "/Library/Python/2.7/site-packages/streamlink/stream/hls.py", line 282, in parse_variant_playlist

res = session_.http.get(url, exception=IOError, **request_params)


 "/Library/Python/2.7/site-packages/requests/sessions.py", line 501, in get

return self.request('GET', url, **kwargs)


 "/Library/Python/2.7/site-packages/streamlink/plugin/api/http_session.py", line 156, in request

*args, **kwargs)


 "/Library/Python/2.7/site-packages/requests/sessions.py", line 488, in request

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


 "/Library/Python/2.7/site-packages/requests/sessions.py", line 609, in send

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


 "/Library/Python/2.7/site-packages/requests/adapters.py", line 423, in send

timeout=timeout


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen

chunked=chunked)


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_request

self._validate_conn(conn)


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_conn

conn.connect()


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/connection.py", line 330, in connect

cert = self.sock.getpeercert()


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 324, in getpeercert

'subjectAltName': get_subj_alt_name(x509)


 "/Library/Python/2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 166, in get_subj_alt_name

cert = _Certificate(openssl_backend, peer_cert._x509)
AttributeError: 'X509' object has no attribute '_x509'
