-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ImportError: cannot import name 'get_full_repo_name' from 'huggingface_hub' #2055
Comments
Have you resolve your issue? @Ryan-shadow |
the same problem @comfyanonymous |
the same problem |
1 similar comment
the same problem |
Based on the symptoms, it appears that the package dependency is tangled. Also, judging from the error message, it seems to be using the system Python. It is recommended to use the portable version or a venv instead. |
I got the same issue trying to run inside conda |
Same issue here, running inside conda python 3.10 Anyone? |
You can see: huggingface/transformers#15062 (comment) |
I had the same problem and tried |
still has problem: |
Tried this but still same |
try update requests,it works for me: |
Ty, worked for me |
|
pip install --upgrade requests did not works for me... it doesn't work for me , is there any other solutions for this ? |
|
pip3 install chardet, It works for me. |
I fixed using: |
I've tried following
still have the issue |
|
it works for me! i use conda! |
|
Here is how I solved the error: I encountered two subsequent dependency issues, which are solved by: |
I had the same problem but was able to fix it using: |
i dont use conda. So i just try |
|
Environment:
|
Environment:
|
Total VRAM 6144 MB, total RAM 32509 MB
Traceback (most recent call last):
File "F:\ai\ComfyUI-master\comfy\model_management.py", line 218, in
import accelerate
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate_init_.py", line 3, in
from .accelerator import Accelerator
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\accelerator.py", line 36, in
from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\utils_init_.py", line 148, in
from .megatron_lm import (
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\accelerate\utils\megatron_lm.py", line 32, in
from transformers.modeling_outputs import (
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers_init_.py", line 26, in
from . import dependency_versions_check
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\utils_init_.py", line 18, in
from huggingface_hub import get_full_repo_name # for backward compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'get_full_repo_name' from 'huggingface_hub' (C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\huggingface_hub_init_.py)
ERROR: LOW VRAM MODE NEEDS accelerate.
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce GTX 1660 SUPER : cudaMallocAsync
VAE dtype: torch.float32
Traceback (most recent call last):
File "F:\ai\ComfyUI-master\main.py", line 72, in
import execution
File "F:\ai\ComfyUI-master\execution.py", line 12, in
import nodes
File "F:\ai\ComfyUI-master\nodes.py", line 20, in
import comfy.diffusers_load
File "F:\ai\ComfyUI-master\comfy\diffusers_load.py", line 4, in
import comfy.sd
File "F:\ai\ComfyUI-master\comfy\sd.py", line 12, in
from . import clip_vision
File "F:\ai\ComfyUI-master\comfy\clip_vision.py", line 1, in
from transformers import CLIPVisionModelWithProjection, CLIPVisionConfig, modeling_utils
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers_init_.py", line 26, in
from . import dependency_versions_check
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\utils_init_.py", line 18, in
from huggingface_hub import get_full_repo_name # for backward compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'get_full_repo_name' from 'huggingface_hub' (C:\Users\Ryan\AppData\Local\Programs\Python\Python311\Lib\site-packages\huggingface_hub_init_.py)
The text was updated successfully, but these errors were encountered: