无法在Google Colab上分配请求的地址

时间:2020-01-26 11:59:37

标签: websocket google-colaboratory

我在colab笔记本上遇到以下错误:

import syft as sy
from syft.workers.node_client import NodeClient
import torch
hook = sy.TorchHook(torch)
nodes = ["ws://localhost:3000/","ws://localhost:3001/"]
compute_nodes = []
for node in nodes:
    compute_nodes.append( NodeClient(hook, node) )

NodeClient实际上正在使用诸如self.connect()self.ws = websocket.create_connection(**args)websock.settimeout(timeout if timeout is not None else getdefaulttimeout())websock.connect(url, **options)self.sock_opt.timeout = options.get('timeout', self.sock_opt.timeout),{{1 }},self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),options.pop('socket', None))sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)

但是会产生错误: sock.connect(address)

0 个答案:

没有答案