Traceback (most recent call last):


 "c:\program files\python36\lib\site-packages\flask\app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "c:\program files\python36\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "c:\program files\python36\lib\site-packages\flask\app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "c:\program files\python36\lib\site-packages\flask\_compat.py", line 33, in reraise

raise value


 "c:\program files\python36\lib\site-packages\flask\app.py", line 1610, in full_dispatch_request

rv = self.preprocess_request()


 "c:\program files\python36\lib\site-packages\flask\app.py", line 1831, in preprocess_request

rv = func()


 "D:\Dropbox\p\kb\python\web\flask\trusted_hosts.py", line 17, in set_trusted_hosts

print(request.host)


 "c:\program files\python36\lib\site-packages\werkzeug\local.py", line 347, in __getattr__

return getattr(self._get_current_object(), name)


 "c:\program files\python36\lib\site-packages\werkzeug\utils.py", line 73, in __get__

value = self.func(obj)


 "c:\program files\python36\lib\site-packages\werkzeug\wrappers.py", line 635, in host

return get_host(self.environ, trusted_hosts=self.trusted_hosts)


 "c:\program files\python36\lib\site-packages\werkzeug\wsgi.py", line 160, in get_host

if not host_is_trusted(rv, trusted_hosts):


 "c:\program files\python36\lib\site-packages\werkzeug\wsgi.py", line 132, in host_is_trusted

if suffix_match and hostname.endswith('.' + ref):
TypeError: must be str, not bytes

Traceback (most recent call last):


 "setup.py", line 47, in <module>

'bandcamp-dl=bandcamp_dl.__main__:main',


 "C:\Python34\lib\distutils\core.py", line 149, in setup

dist.run_commands()


 "C:\Python34\lib\distutils\dist.py", line 955, in run_commands

self.run_command(cmd)


 "C:\Python34\lib\distutils\dist.py", line 974, in run_command

cmd_obj.run()


 "C:\Python34\lib\site-packages\setuptools\command\install.py", line 74, in run

self.do_egg_install()


 "C:\Python34\lib\site-packages\setuptools\command\install.py", line 89, in do_egg_install

self.run_command('bdist_egg')


 "C:\Python34\lib\distutils\cmd.py", line 313, in run_command

self.distribution.run_command(command)


 "C:\Python34\lib\distutils\dist.py", line 974, in run_command

cmd_obj.run()


 "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 177, in run

self.run_command("egg_info")


 "C:\Python34\lib\distutils\cmd.py", line 313, in run_command

self.distribution.run_command(command)


 "C:\Python34\lib\distutils\dist.py", line 974, in run_command

cmd_obj.run()


 "C:\Python34\lib\site-packages\setuptools\command\egg_info.py", line 156, in run

writer(self, ep.name, os.path.join(self.egg_info,ep.name))


 "C:\Python34\lib\site-packages\setuptools\command\egg_info.py", line 322, in write_pkg_info

metadata.write_pkg_info(cmd.egg_info)


 "C:\Python34\lib\distutils\dist.py", line 1108, in write_pkg_info

self.write_pkg_file(pkg_info)


 "C:\Python34\lib\distutils\dist.py", line 1129, in write_pkg_file

long_desc = rfc822_escape(self.get_long_description())


 "C:\Python34\lib\distutils\util.py", line 485, in rfc822_escape

lines = header.split('\n')
TypeError: Type str doesn't support the buffer API