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

Installation Issue: HuggingFace Hub Error (LocalEntryNotFound) #302

Open
Vardaan-Grover opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@Vardaan-Grover
Copy link

Vardaan-Grover commented Jan 7, 2025

Even though I have proper network available on my device, I'm still facing the below issue while trying to install through Pinokio.

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
<<PINOKIO_SHELL>>eval "$(conda shell.bash hook)" ; conda deactivate ; conda deactivate ; conda deactivate ; conda activate base ; source /Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/bin/activate /Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env ; python app.py
177
best_model.pt: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 175M/175M [01:01<00:00, 2.87MB/s]
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/dp/model/model.py:306: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
checkpoint = torch.load(checkpoint_path, map_location=device)
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/torch/nn/modules/transformer.py:379: UserWarning: enable_nested_tensor is True, but self.use_nested_tensor is False because encoder_layer.self_attn.batch_first was not True(use batch_first for better inference performance)
warnings.warn(
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/models.py:537: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
params = torch.load(model_path, map_location='cpu')['model']
Utils/JDC/bst.t7 WHAT ARE YOU TRYING TO LOAD F0 L520
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/models.py:521: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
params = torch.load(path, map_location='cpu')['net']
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/Utils/PLBERT/util.py:30: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
checkpoint = torch.load(log_dir + "/step_" + str(iters) + ".pth", map_location='cpu')

==============
args.decoder.type='hifigan'
==============L584 models.py @ build_model()

/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/torch/nn/utils/weight_norm.py:143: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/torch/nn/modules/rnn.py:123: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.2 and num_layers=1
warnings.warn(
Traceback (most recent call last):
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connectionpool.py", line 534, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connection.py", line 516, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/http/client.py", line 1423, in getresponse
response.begin()
File "/opt/anaconda3/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/socket.py", line 707, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/ssl.py", line 1252, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/ssl.py", line 1104, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/util/util.py", line 39, in reraise
raise value
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connectionpool.py", line 536, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/urllib3/connectionpool.py", line 367, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1376, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1296, in get_hf_file_metadata
r = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 277, in _request_wrapper
response = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 300, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 93, in send
return super().send(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/requests/adapters.py", line 713, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: bf735be2-5a41-4cc4-9923-93ab2b4ff9f8)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/app.py", line 23, in
from text2speech import tts_randomized, parse_speed, tts_with_style_vector
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/text2speech.py", line 14, in
import inference
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/inference.py", line 173, in
cached_path(
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/cached_path/_cached_path.py", line 204, in cached_path
file_path, etag = get_from_cache(url_or_filename, cache_dir, quiet=quiet, progress=progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/cached_path/_cached_path.py", line 309, in get_from_cache
return hf_get_from_cache(url, cache_dir), None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/cached_path/schemes/hf.py", line 60, in hf_get_from_cache
return hf_hub_download(model_identifier, filename, cache_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/cached_path/schemes/hf.py", line 36, in hf_hub_download
hf_hub.hf_hub_download(
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 862, in hf_hub_download
return _hf_hub_download_to_cache_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 969, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/Users/vardaangrover/pinokio/api/StyleTTS2_Studio.git/app/env/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1487, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant