-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Comments
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
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. |
I have the same issue basically but with different version. Checking installs and venv + autodebug checks |
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 |
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:
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
orpip install -e '.[dev]'
if you're working with git mainhuggingface-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
orpip install -e '.[dev]'
if you're working with git mainYour 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
The text was updated successfully, but these errors were encountered: