Repository: Unbabel/COMET
Issue: Running the code on Mac
GitHub labels: question

```
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/util/connection.py", line 84, in create_connection
raise err
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connection.py", line 164, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError:
(<urllib3.connection.HTTPSConnection object at 0x171cb5f00>,
'Connection to huggingface.co timed out. (connect timeout=None)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/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: /api/models/Unbabel/wmt22-comet-da/revision/main
(Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection
object at 0x171cb5f00>, 'Connection to huggingface.co timed out.
(connect timeout=None)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/comet/models/init.py", line 46, in download_model
model_path = snapshot_download(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(args, **kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/_snapshot_download.py", line 186, in
snapshot_download
repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type,
revision=revision, token=token)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(args, kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/P
yCharmLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/hf_api.py", line 1868, in repo_info
return method(
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/P
yCharmLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/utils/_validators.py", line 118, in
_inner_fn
return fn(*args, kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/hf_api.py", line 1677, in model_info
r = get_session().get(path, headers=headers, timeout=timeout,
params=params)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/requests/sessions.py", line 602, in get
return self.request("GET", url, kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/P
yCharmLearningProject/venv/lib/python3.10/sitepackages/requests/sessions.py", line 589, in request
resp = self.send(prep, send_kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/requests/sessions.py", line 703, in send
r = adapter.send(request, kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/P
yCharmLearningProject/venv/lib/python3.10/sitepackages/huggingface_hub/utils/_http.py", line 63, in send
return super().send(request, *args, kwargs)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/requests/adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout:
(MaxRetryError("HTTPSConnectionPool(host='huggingface.co',
port=443): Max retries exceeded with url: /api/models/Unbabel/wmt22-
comet-da/revision/main (Caused by
ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at
0x171cb5f00>, 'Connection to huggingface.co timed out. (connect
timeout=None)'))"), '(Request ID: 63470687-e433-44b5-a04de6344577f11d)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/comet/models/init.py", line 51, in download_model
checkpoint_path = download_model_legacy(model, saving_directory)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/comet/models/download_utils.py", line 224, in
download_model_legacy
raise Exception(
Exception: Unbabel/wmt22-comet-da is not in the
available_legacy_metrics or is a valid checkpoint folder.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/bin/comet-score", line 8, in
sys.exit(score_command())
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/comet/cli/score.py", line 154, in score_command
model_path = download_model(cfg.model,
saving_directory=cfg.model_storage_path)
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/sitepackages/comet/models/init.py", line 53, in download_model
raise KeyError(f"Model '{model}' not supported by COMET.")
KeyError: "Model 'Unbabel/wmt22-comet-da' not supported by COMET.
```

The code works on a Microsoft computer, but I'm on a Mac and it keeps getting blocked. I don't know if it's a system problem. How I Can I fix this problem?