huggingface_hub
huggingface_hub copied to clipboard
Testing logs hung on logging into Hugging Face
Describe the bug
I am getting this when running make test:
--------------------------------------------------------------------------------------------------- live log call ----------------------------------------------------------------------------------------------------
WARNING huggingface_hub.repository:repository.py:678 Cloning https://hub-ci.huggingface.co/missing_repo into local empty directory.
Username for 'https://hub-ci.huggingface.co':
Reproduction
I don't know, probably something about my set up led to this
Logs
WARNING huggingface_hub.repository:repository.py:678 Cloning https://hub-ci.huggingface.co/missing_repo into local empty directory.
Username for 'https://hub-ci.huggingface.co':
System info
- huggingface_hub version: 0.21.0.dev0
- Platform: macOS-13.5.2-arm64-arm-64bit
- Python version: 3.11.5
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: /Users/user/.cache/huggingface/token
- Has saved token ?: False
- Configured git credential helpers: osxkeychain
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.3
- Graphviz: N/A
- Pydot: N/A
- Pillow: 10.2.0
- hf_transfer: N/A
- gradio: 4.14.0
- tensorboard: N/A
- numpy: 1.26.3
- pydantic: 2.5.3
- aiohttp: 3.9.1
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /Users/user/.cache/huggingface/hub
- HF_ASSETS_CACHE: /Users/user/.cache/huggingface/assets
- HF_TOKEN_PATH: /Users/user/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10
Hmm, test_repository.py tests are annoying as they are based on your local git config. In general Repository is a deprecated part of the codebase and though we still support it, we don't investigate it much. However I've never seen this error before (not happening in CI, not on my laptop).
If you'd like me to share a subset of my Git config, let me know. Perhaps a well placed filesystem patch can solve the problem here by overriding one's local Git config, or a subprocess patch.
Since it's deprecated code, feel free to ignore this issue or close it out
I will let this issue open just in case but low priority to be honest. I'm not sure which git config values I would need to investigate it though let's keep it as it is for now :smile: