bmaltais / kohya_ss

Apache License 2.0
9.57k stars 1.23k forks source link

SD3 branch ERROR: Cannot install -r requirements.txt (line 1), -r requirements.txt (line 10), diffusers[torch]==0.25.0 and huggingface-hub==0.24.5 because these package versions have conflicting dependencies. #2901

Open FurkanGozukara opened 1 week ago

FurkanGozukara commented 1 week ago

SD3 flux branch is broken when doing fresh install @kohya-ss @bmaltais

Collecting wcwidth>=0.2.5
  Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
INFO: pip is looking at multiple versions of ftfy to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fairscale to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of einops to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of easygui to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of diffusers[torch] to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dadaptation to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of altair to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of aiofiles to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of accelerate to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of onnxruntime-gpu to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of bitsandbytes to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 1), -r requirements.txt (line 10), diffusers[torch]==0.25.0 and huggingface-hub==0.24.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested huggingface-hub==0.24.5
    accelerate 0.33.0 depends on huggingface-hub>=0.21.0
    diffusers[torch] 0.25.0 depends on huggingface-hub>=0.19.4
    gradio 5.0.1 depends on huggingface-hub>=0.25.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

image

FurkanGozukara commented 1 week ago

@bmaltais error related to upgrading Gradio 5

agwosdz commented 1 week ago

@bmaltais Updating requirements.txt to huggingface-hub==0.25.2 worked for me.

bmaltais commented 1 week ago

Shold be fixed now. I released the huggingface-hub restrictions. Not sure why they were there in the 1st place... Hoping I am not introducing another issue by relaxing the version restriction too much. Time will tell.

agwosdz commented 1 week ago

@bmaltais You might if it pulls 0.26.0-dev; last time I checked, they removed a couple functions in 0.26 (like cached_download) that might be used somewhere. I think I remember seeing a cached_download not found error when I removed restrictions... Link https://github.com/huggingface/huggingface_hub/pull/2579#issue-2556021184

hben35096 commented 6 days ago

pip install "huggingface-hub==0.25.1"

hben35096 commented 6 days ago

The diffusers version can be higher, such as 0.30.3, to avoid some deprecation prompts