ImportError: cannot import name 'HF_HUB_DISABLE_TELEMETRY'
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
### Expected Behavior
After reinstalling via `git clone` I'm getting this error when I try to run on MacOS.
```
python main.py
Checkpoint files will always be loaded safely.
Total VRAM 32768 MB, total RAM 32768 MB
pytorch version: 2.5.1
Mac Version (15, 3, 2)
Set vram state to: SHARED
Device: mps
Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
Traceback (most recent call last):
File "/Users/home/dev/ComfyUI/main.py", line 136, in
import execution
File "/Users/home/dev/ComfyUI/execution.py", line 13, in
import nodes
File "/Users/home/dev/ComfyUI/nodes.py", line 22, in
import comfy.diffusers_load
File "/Users/home/dev/ComfyUI/comfy/diffusers_load.py", line 3, in
import comfy.sd
File "/Users/home/dev/ComfyUI/comfy/sd.py", line 26, in
from . import model_detection
File "/Users/home/dev/ComfyUI/comfy/model_detection.py", line 2, in
import comfy.supported_models
File "/Users/home/dev/ComfyUI/comfy/supported_models.py", line 5, in
from . import sd1_clip
File "/Users/home/dev/ComfyUI/comfy/sd1_clip.py", line 3, in
from transformers import CLIPTokenizer
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/transformers/__init__.py", line 26, in
from . import dependency_versions_check
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/transformers/dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/transformers/utils/__init__.py", line 22, in
from huggingface_hub.constants import HF_HUB_DISABLE_TELEMETRY as DISABLE_TELEMETRY # for backward compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'HF_HUB_DISABLE_TELEMETRY' from 'huggingface_hub.constants' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/huggingface_hub/constants.py)
```
### Actual Behavior
The screenshot would be the terminal output above.
### Steps to Reproduce
I'm not sure. One thing I did do was install and uninstall Comfy Desktop.
### Debug Logs
```powershell
ImportError: cannot import name 'HF_HUB_DISABLE_TELEMETRY'
```
### Other
Is there true support for MacOS?
Contributor guide
Assessment
This issue has not been assessed yet.