install failed #10
Unanswered
mingyueliang
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
That is very strange. I thought that we had set it up so that it looked locally if you could not use the net. @kleinesfilmroellchen any ideas? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After install antlr4-tools, run antlr4 failed in cmd.
$ antlr4
Could not get latest version number, attempting to fall back to latest downloaded version...
Traceback (most recent call last):
File "C:\Python38\lib\urllib\request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Python38\lib\http\client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Python38\lib\http\client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Python38\lib\http\client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Python38\lib\http\client.py", line 1010, in _send_output
self.send(msg)
File "C:\Python38\lib\http\client.py", line 950, in send
self.connect()
File "C:\Python38\lib\http\client.py", line 1417, in connect
super().connect()
File "C:\Python38\lib\http\client.py", line 921, in connect
self.sock = self._create_connection(
File "C:\Python38\lib\socket.py", line 808, in create_connection
raise err
File "C:\Python38\lib\socket.py", line 796, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\antlr4_tool_runner.py", line 26, in latest_version
with urlopen(f"https://search.maven.org/solrsearch/select?q=a:antlr4-master+g:org.antlr") as response:
File "C:\Python38\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python38\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Python38\lib\urllib\request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python38\lib\urllib\request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\Python38\lib\urllib\request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to re
spond>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python38\Scripts\antlr4.exe_main.py", line 7, in
File "C:\Python38\lib\site-packages\antlr4_tool_runner.py", line 131, in tool
args, version = get_version_arg(args)
File "C:\Python38\lib\site-packages\antlr4_tool_runner.py", line 123, in get_version_arg
version = latest_version()
File "C:\Python38\lib\site-packages\antlr4_tool_runner.py", line 36, in latest_version
version_dirs = list(filter(lambda directory: re.match(r"[0-9]+.[0-9]+.[0-9]+", directory), os.listdir(mvn_repo)))
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\mliang2x\.m2\repository\org\antlr\antlr4'
Is there any solution?
Beta Was this translation helpful? Give feedback.
All reactions