You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We use the following code on a daily basis: pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-sv")
On the morning Aug 17 this code started to produce errors:
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-sv-en")
Traceback (most recent call last):
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 362, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl_.py", line 386, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /Helsinki-NLP/opus-mt-sv-en/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\configuration_utils.py", line 596, in _get_config_dict
resolved_config_file = cached_path(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\utils\hub.py", line 282, in cached_path
output_path = get_from_cache(
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\utils\hub.py", line 485, in get_from_cache
r = requests.head(url, headers=headers, allow_redirects=False, proxies=proxies, timeout=etag_timeout)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 102, in head
return request('head', url, **kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /Helsinki-NLP/opus-mt-sv-en/resolve/main/config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\pipelines\__init__.py", line 541, in pipeline
config = AutoConfig.from_pretrained(model, revision=revision, _from_pipeline=task, **model_kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\models\auto\configuration_auto.py", line 652, in from_pretrained
config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\configuration_utils.py", line 548, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "C:\Users\TMATTEUS\AppData\Local\Programs\Python\Python39\lib\site-packages\transformers\configuration_utils.py", line 636, in _get_config_dict
raise EnvironmentError(
OSError: Can't load config for 'Helsinki-NLP/opus-mt-sv-en'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'Helsinki-NLP/opus-mt-sv-en' is the correct path to a directory containing a config.json file
Any ideas of what might cause this issue?
The text was updated successfully, but these errors were encountered:
Hi,
We use the following code on a daily basis:
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-sv")
On the morning Aug 17 this code started to produce errors:
Any ideas of what might cause this issue?
The text was updated successfully, but these errors were encountered: