Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start

resp = await task


 "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle

resp = await handler(request)


 "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl

return await handler(request)


 "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware

return await handler(request)


 "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware

return await handler(request)


 "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 231, in auth_middleware

return await handler(request)


 "/usr/src/homeassistant/homeassistant/components/http/view.py", line 128, in handle

result = await result


 "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 164, in post

return await super().post(request, flow_id)


 "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 48, in wrapper

result = await method(view, request, *args, **kwargs)


 "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 90, in post

result = await self._flow_mgr.async_configure(flow_id, data)


 "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 89, in async_configure

result = await self._async_handle_step(flow, cur_step["step_id"], user_input)


 "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 132, in _async_handle_step

result: Dict = await getattr(flow, method)(user_input)


 "/usr/src/homeassistant/homeassistant/components/tradfri/config_flow.py", line 55, in async_step_auth

self.hass, host, user_input[KEY_SECURITY_CODE]


 "/usr/src/homeassistant/homeassistant/components/tradfri/config_flow.py", line 164, in authenticate

key = await api_factory.generate_psk(security_code)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 195, in generate_psk

self._psk = await self.request(command)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request

result = await self._execute(api_commands)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 146, in _execute

_, res = await self._get_response(msg)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 105, in _get_response

await self._reset_protocol(e)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 77, in _reset_protocol

protocol = await self._get_protocol()


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 72, in _get_protocol

return (await self._protocol)


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 93, in _get_response

protocol = await self._get_protocol()


 "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 72, in _get_protocol

return (await self._protocol)


 "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 528, in create_client_context

self.transport_endpoints.append((yield from TransportEndpointUDP6.create_client_transport_endpoint(new_message_callback=self._dispatch_message, new_error_callback=self._dispatch_error, log=self.log, loop=loop, dump_to=dump_to)))


 "/usr/local/lib/python3.7/site-packages/aiocoap/transports/udp6.py", line 191, in create_client_transport_endpoint

sock = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)


 "/usr/local/lib/python3.7/socket.py", line 151, in __init__

_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

Traceback (most recent call last):


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/site-packages/visdom/server.py", line 438, in <module>

main()


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/site-packages/visdom/server.py", line 432, in main

app.listen(FLAGS.port, max_buffer_size=1024 ** 3)


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/site-packages/tornado/web.py", line 1943, in listen

server.listen(port, address)


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/site-packages/tornado/tcpserver.py", line 142, in listen

sockets = bind_sockets(port, address=address)


 "/home/tako/anaconda3/envs/pytorch/lib/python3.6/site-packages/tornado/netutil.py", line 197, in bind_sockets

sock.bind(sockaddr)
OSError: [Errno 98] Address already in us