Skip to content
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

[BUG REPORT] Install process constantly overwrites huggingface-hub to 0.19.0 and cannot continue #231

Open
Skrownerve opened this issue May 18, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Skrownerve
Copy link

Skrownerve commented May 18, 2024

Describe the bug
When running run.sh to install and run, huggingface-hub is installed and overwrites whatever version I currently have in site-packages for Python 3.10 with huggingface-hub version 0.19.4. Then, I get the following:

ImportError: huggingface-hub>=0.23.0,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.19.4.

I believe this is coming from Transformers. I can remove 0.19.4 and install the version this message is telling me to, but it is always overwritten by 0.19.4 during the install.

To Reproduce
Steps to reproduce the behavior:

  1. Run run.sh
  2. Watch 0.19.4 get installed
  3. Receive error

Expected behavior
I am fairly new to Linux and not a programmer. What I expect to happen here is the install process to install what it needs and then run the application. I am not expecting to see it install an incorrect version of a component and then complain to me about it!

Additional context
I have tried my best to look through as many files as I can to see where this version of huggingface-hub is being installed, but I was unable to find it. I have no clue if this is really the base issue. I cannot use --skip-install because bark (and likely other requirements) is never installed properly due to this error, and the installer then complains about that. I even tried removing Transformers in case a prior version I had was the cause. But then it's reinstalled during this process and it all still happens.
Here is the entire log from start to finish:
./run.sh
Checking installs and venv + autodebug checks
Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Webui version: 7eb428a - Fri Feb 16 19:25:22 2024 +0100
Found extensions:
Installed wheel!
Installed diffusers!
Installed huggingface-hub!
Installed bark!
Done installing/checking installs.
Activating extensions
Preparing
Traceback (most recent call last):
File "/home/trie/Music/voice/RVC/audio-webui/main.py", line 27, in
from webui.modules.implementations.tts_monkeypatching import patch as patch1
File "/home/trie/Music/voice/RVC/audio-webui/webui/modules/implementations/init.py", line 1, in
import webui.modules.implementations.ttsmodels as tts
File "/home/trie/Music/voice/RVC/audio-webui/webui/modules/implementations/ttsmodels.py", line 14, in
import webui.modules.models as mod
File "/home/trie/Music/voice/RVC/audio-webui/webui/modules/models.py", line 6, in
from transformers import Pipeline
File "/home/trie/.local/lib/python3.10/site-packages/transformers/init.py", line 26, in
from . import dependency_versions_check
File "/home/trie/.local/lib/python3.10/site-packages/transformers/dependency_versions_check.py", line 57, in
require_version_core(deps[pkg])
File "/home/trie/.local/lib/python3.10/site-packages/transformers/utils/versions.py", line 117, in require_version_core
return require_version(requirement, hint)
File "/home/trie/.local/lib/python3.10/site-packages/transformers/utils/versions.py", line 111, in require_version
_compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
File "/home/trie/.local/lib/python3.10/site-packages/transformers/utils/versions.py", line 44, in _compare_versions
raise ImportError(
ImportError: huggingface-hub>=0.23.0,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.19.4.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
huggingface-hub>=0.23.0,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.19.4.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
Your install might have failed to install one of the requirements, are you missing a package?
You can read common issues at https://github.com/gitmylo/audio-webui/wiki/common-issues

@Skrownerve Skrownerve added the bug Something isn't working label May 18, 2024
gitmylo added a commit that referenced this issue May 18, 2024
Transformers' requirements specify version 0.23.0 as minimum, https://github.com/huggingface/transformers/blob/b6eb708bf1903f40499558b64e6d9392c1b889e1/setup.py#L120
If this doesn't work, downgrade transformers instead.

Related to #231
@gitmylo
Copy link
Owner

gitmylo commented May 18, 2024

I have set the required version number the 0.23.0, as specified in transformers' requirements here.

If this commit causes issues, tell me, and I'll find an alternative solution. If it works, then you can just close the issue.

@MrHorakhty
Copy link

I have the same issue basically but with different version.

Checking installs and venv + autodebug checks
Python version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Webui version: 17c7489 - Wed May 29 16:37:24 2024 +0200
Found extensions:
activating venv
Checking installs and venv + autodebug checks
Python version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Webui version: 17c7489 - Wed May 29 16:37:24 2024 +0200
Found extensions:
Installed wheel!
Installed huggingface-hub!
Done installing/checking installs.
Activating extensions
Preparing
Traceback (most recent call last):
File "C:\Games\audio-webui\audio-webui\main.py", line 27, in
from webui.modules.implementations.tts_monkeypatching import patch as patch1
File "C:\Games\audio-webui\audio-webui\webui\modules\implementations_init_.py", line 1, in
import webui.modules.implementations.ttsmodels as tts
File "C:\Games\audio-webui\audio-webui\webui\modules\implementations\ttsmodels.py", line 14, in
import webui.modules.models as mod
File "C:\Games\audio-webui\audio-webui\webui\modules\models.py", line 6, in
from transformers import Pipeline
File "C:\Games\audio-webui\audio-webui\venv\lib\site-packages\transformers_init_.py", line 26, in
from . import dependency_versions_check
File "C:\Games\audio-webui\audio-webui\venv\lib\site-packages\transformers\dependency_versions_check.py", line 57, in
require_version_core(deps[pkg])
File "C:\Games\audio-webui\audio-webui\venv\lib\site-packages\transformers\utils\versions.py", line 117, in require_version_core
return require_version(requirement, hint)
File "C:\Games\audio-webui\audio-webui\venv\lib\site-packages\transformers\utils\versions.py", line 111, in require_version
_compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
File "C:\Games\audio-webui\audio-webui\venv\lib\site-packages\transformers\utils\versions.py", line 44, in _compare_versions
raise ImportError(
ImportError: huggingface-hub>=0.23.2,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.23.0.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
huggingface-hub>=0.23.2,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.23.0.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
Your install might have failed to install one of the requirements, are you missing a package?
You can read common issues at https://github.com/gitmylo/audio-webui/wiki/common-issues

@AMacholl
Copy link

I went to audio-webui\venv\Lib\site-packages\huggingface_hub-0.23.0.dist-info\metadata and just changed the version to 0.23.4 and it worked

gitmylo added a commit that referenced this issue Aug 16, 2024
Upgrade huggingface-hub from 0.23.0 to 0.23.2
Lock transformers from latest to 4.44.0 (latest as the time of committing)
This should prevent some re-installs of packages, without doing a workaround.

This commit is related to the issues: #231, #236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants