VainF / Pytorch-Synchronized-BatchNorm

Synchronized batchnorm for pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception in user code

RohitKeshari opened this issue · comments

Setting up a new session...
Exception in user code:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f66cbe07a20>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 786, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=15555): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f66cbe07a20>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/visdom/init.py", line 711, in _send
data=json.dumps(msg),
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=15555): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f66cbe07a20>: Failed to establish a new connection: [Errno 111] Connection refused',))
[Errno 111] Connection refused
Exception in user code:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1287, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1333, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1282, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 1042, in _send_output
self.send(msg)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/http/client.py", line 980, in send
self.connect()
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f66cbb2e128>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/connectionpool.py", line 786, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=15555): Max retries exceeded with url: /win_data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f66cbb2e128>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/visdom/init.py", line 711, in _send
data=json.dumps(msg),
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/visdom/init.py", line 677, in _handle_post
r = self.session.post(url, data=data)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=15555): Max retries exceeded with url: /win_data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f66cbb2e128>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
File "Pytorch-Synchronized-BatchNorm/examples/cifar.py", line 274, in
main()
File "Pytorch-Synchronized-BatchNorm/examples/cifar.py", line 137, in main
vis = Visualizer(port=opts.vis_port, env=opts.vis_env)
File "/home/ec2-user/SageMaker/syncBN_example/Pytorch-Synchronized-BatchNorm/examples/utils/visualizer.py", line 14, in init
ori_win = json.loads(ori_win)
File "/home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/json/init.py", line 348, in loads
'not {!r}'.format(s.class.name))
TypeError: the JSON object must be str, bytes or bytearray, not 'bool'