Closed JiaxiangBU closed 4 years ago
发现是打开这个文档的权限问题
> # "../src/utils.py"
> df <- read_csv("https://raw.githubusercontent.com/BlankerL/DXY-2019-nCoV-Data/master/csv/DXYArea.csv")
Error in open.connection(con, "rb") :
schannel: failed to receive handshake, SSL/TLS connection failed
那我只能 clone 数据仓库,定时 pull 了。 close 了。
是否考虑这个情况下,修改load_chinese_data()
函数,clone 下来再去读数据?
I have never encountered this problem. Probably just some accidental network problems?
I have never encountered this problem. Probably just some accidental network problems?
I try again, probably my family internet bans this connection. I find the data repo is not very large so I can easily clone it. I think this issue could be closed.
报错信息
```python --------------------------------------------------------------------------- ConnectionResetError Traceback (most recent call last) D:\install\miniconda\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args) 1316 h.request(req.get_method(), req.selector, req.data, headers, -> 1317 encode_chunked=req.has_header('Transfer-encoding')) 1318 except OSError as err: # timeout error D:\install\miniconda\lib\http\client.py in request(self, method, url, body, headers, encode_chunked) 1228 """Send a complete request to the server.""" -> 1229 self._send_request(method, url, body, headers, encode_chunked) 1230 D:\install\miniconda\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked) 1274 body = _encode(body, 'body') -> 1275 self.endheaders(body, encode_chunked=encode_chunked) 1276 D:\install\miniconda\lib\http\client.py in endheaders(self, message_body, encode_chunked) 1223 raise CannotSendHeader() -> 1224 self._send_output(message_body, encode_chunked=encode_chunked) 1225 D:\install\miniconda\lib\http\client.py in _send_output(self, message_body, encode_chunked) 1015 del self._buffer[:] -> 1016 self.send(msg) 1017 D:\install\miniconda\lib\http\client.py in send(self, data) 955 if self.auto_open: --> 956 self.connect() 957 else: D:\install\miniconda\lib\http\client.py in connect(self) 1391 self.sock = self._context.wrap_socket(self.sock, -> 1392 server_hostname=server_hostname) 1393 D:\install\miniconda\lib\ssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session) 411 context=self, --> 412 session=session 413 ) D:\install\miniconda\lib\ssl.py in _create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session) 852 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets") --> 853 self.do_handshake() 854 except (OSError, ValueError): D:\install\miniconda\lib\ssl.py in do_handshake(self, block) 1116 self.settimeout(None) -> 1117 self._sslobj.do_handshake() 1118 finally: ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 During handling of the above exception, another exception occurred: URLError Traceback (most recent call last)