Distant resource does not have a Content-Length
Fetching 18 files: 28%|██████▉ | 5/18 [00:01<00:04, 2.88it/s]
Traceback (most recent call last):
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1754, in _get_metadata_or_catch_error
raise FileMetadataError("Distant resource does not have a Content-Length.")
huggingface_hub.utils._errors.FileMetadataError: Distant resource does not have a Content-Length.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/caochengcheng/anaconda3/envs/ccc1/bin/huggingface-cli", line 8, in
sys.exit(main())
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/commands/huggingface_cli.py", line 51, in main
service.run()
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/commands/download.py", line 146, in run
print(self._download()) # Print path to downloaded files
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/commands/download.py", line 180, in _download
return snapshot_download(
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/_snapshot_download.py", line 294, in snapshot_download
thread_map(
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 69, in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 51, in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
yield fs.pop().result()
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/_snapshot_download.py", line 268, in _inner_hf_hub_download
return hf_hub_download(
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1202, in hf_hub_download
return _hf_hub_download_to_local_dir(
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1440, in _hf_hub_download_to_local_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/home/caochengcheng/anaconda3/envs/ccc1/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1826, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._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.