Argos translate desktop GUI does not function offline
Author: purplepenguin73Created Aug 27, 2026Updated Aug 27, 2026
Argos Translate states is supports offline translations, but it crashes immediately when run in an offline environment. Here is the output:
(translation-env) user@d13-offline-translation:~$ argos-translate-gui
Traceback (most recent call last):
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connection.py", line 204, in _new_conn
sock = connection.create_connection(
(self._dns_host, self.port),
...<2 lines>...
socket_options=self.socket_options,
)
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/socket.py", line 977, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connectionpool.py", line 788, in urlopen
response = self._make_request(
conn,
...<10 lines>...
**response_kw,
)
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connectionpool.py", line 488, in _make_request
raise new_e
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connectionpool.py", line 464, in _make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1106, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connection.py", line 759, in connect
self.sock = sock = self._new_conn()
~~~~~~~~~~~~~~^^
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: HTTPSConnection(host='raw.githubusercontent.com', port=443): Failed to resolve 'raw.githubusercontent.com' ([Errno -3] Temporary failure in name resolution)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/translation-env/lib/python3.13/site-packages/requests/adapters.py", line 696, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/connectionpool.py", line 842, in urlopen
retries = retries.increment(
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "/home/user/translation-env/lib/python3.13/site-packages/urllib3/util/retry.py", line 543, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /stanfordnlp/stanza-resources/main/resources_1.10.0.json (Caused by NameResolutionError("HTTPSConnection(host='raw.githubusercontent.com', port=443): Failed to resolve 'raw.githubusercontent.com' ([Errno -3] Temporary failure in name resolution)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslategui/gui.py", line 39, in run
translated_text = self.translation_function()
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/translate.py", line 64, in translate
return self.hypotheses(input_text, num_hypotheses=1)[0].value
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/translate.py", line 328, in hypotheses
translated_paragraph = self.underlying.hypotheses(
paragraph, num_hypotheses
)
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/translate.py", line 201, in hypotheses
apply_packaged_translation(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.pkg,
^^^^^^^^^
...<3 lines>...
num_hypotheses,
^^^^^^^^^^^^^^^
)
^
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/translate.py", line 451, in apply_packaged_translation
sentences = sentencizer.split_sentences(input_text)
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/sbd.py", line 160, in split_sentences
doc = self.lazy_pipeline()(text)
~~~~~~~~~~~~~~~~~~^^
File "/home/user/translation-env/lib/python3.13/site-packages/argostranslate/sbd.py", line 149, in lazy_pipeline
self.stanza_pipeline = stanza.Pipeline(
~~~~~~~~~~~~~~~^
lang=self.stanza_lang_code,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
logging_level="WARNING",
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/user/translation-env/lib/python3.13/site-packages/stanza/pipeline/core.py", line 208, in __init__
download_resources_json(self.dir,
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
resources_url=resources_url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
resources_filepath=resources_filepath,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
proxies=proxies)
^^^^^^^^^^^^^^^^
File "/home/user/translation-env/lib/python3.13/site-packages/stanza/resources/common.py", line 459, in download_resources_json
request_file(
~~~~~~~~~~~~^
resources_url,
^^^^^^^^^^^^^^
...<2 lines>...
raise_for_status=True
^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/user/translation-env/lib/python3.13/site-packages/stanza/resources/common.py", line 157, in request_file
download_file(url, temppath, proxies, raise_for_status)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/translation-env/lib/python3.13/site-packages/stanza/resources/common.py", line 119, in download_file
r = requests.get(url, stream=True, proxies=proxies)
File "/home/user/translation-env/lib/python3.13/site-packages/requests/api.py", line 87, in get
return request("get", url, params=params, **kwargs)
File "/home/user/translation-env/lib/python3.13/site-packages/requests/api.py", line 71, in request
return session.request(method=method, url=url, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/translation-env/lib/python3.13/site-packages/requests/sessions.py", line 651, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/translation-env/lib/python3.13/site-packages/requests/sessions.py", line 784, in send
r = adapter.send(request, **kwargs)
File "/home/user/translation-env/lib/python3.13/site-packages/requests/adapters.py", line 729, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /stanfordnlp/stanza-resources/main/resources_1.10.0.json (Caused by NameResolutionError("HTTPSConnection(host='raw.githubusercontent.com', port=443): Failed to resolve 'raw.githubusercontent.com' ([Errno -3] Temporary failure in name resolution)"))
AbortedThis seems to be an issue with Stanza and not Argos, as line 208 in stanza/pipeline/core.py indicates there is an offline mode and commenting out line 208-213 allows Argos to run without any issues.
logger.info("Checking for updates to resources.json in case models have been updated. Note: this behavior can be turned off with download_method=None or download_method=DownloadMethod.REUSE_RESOUCES")
Is there a way that Argos can run Stanza in offline mode?
Source: argosopentech/argos-translate