Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send

timeout=timeout


 "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen

_stacktrace=sys.exc_info()[2])


 "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/me/player/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac642978>: Failed to establish a new connection: [Errno -3] Try again',))

Traceback (most recent call last):


 "train.py", line 85, in <module>

model, optimizer = amp.initialize(model, optimizer, opt_level=args.opt_level)


 "/opt/conda/lib/python3.7/site-packages/apex/amp/frontend.py", line 358, in initialize

return _initialize(models, optimizers, _amp_state.opt_properties, num_losses, cast_model_outputs)


 "/opt/conda/lib/python3.7/site-packages/apex/amp/_initialize.py", line 209, in _initialize

module._register_state_dict_hook(O2StateDictHook(functools.partial(to_type, torch.float32)))


 "/opt/conda/lib/python3.7/site-packages/torch/jit/__init__.py", line 1689, in fail

raise RuntimeError(name + " is not supported on ScriptModules")
RuntimeError: _register_state_dict_hook is not supported on ScriptModules
