Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the code on Mac #172

Closed
haroon830 opened this issue Oct 23, 2023 · 0 comments
Closed

Running the code on Mac #172

haroon830 opened this issue Oct 23, 2023 · 0 comments
Labels
question Further information is requested

Comments

@haroon830
Copy link

Traceback (most recent call last):
File
"/Users/hattie/Library/Caches/JetBrains/PyCharmCE2022.2/demo/PyCh
armLearningProject/venv/lib/python3.10/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/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: /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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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/site�packages/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-a04d�e6344577f11d)')
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/site�packages/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/site�packages/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/site�packages/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/site�packages/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?

@haroon830 haroon830 added the question Further information is requested label Oct 23, 2023
@haroon830 haroon830 changed the title [QUESTION] Running the code on Mac Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant