I got this problem: Launching Web UI with arguments: --xformers
Traceback (most recent call last):
File “E:\Stablediffdel3\stable-diffusion-webui\launch.py”, line 39, in
main()
File “E:\Stablediffdel3\stable-diffusion-webui\launch.py”, line 35, in main
start()
File “E:\Stablediffdel3\stable-diffusion-webui\modules\launch_utils.py”, line 390, in start
import webui
File “E:\Stablediffdel3\stable-diffusion-webui\webui.py”, line 44, in
import gradio # noqa: F401
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_init_.py”, line 3, in
import gradio.components as components
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py”, line 34, in
from gradio_client import media_data
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_client_init_.py”, line 1, in
from gradio_client.client import Client
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_client\client.py”, line 24, in
from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub_init_.py”, line 322, in getattr
submod = importlib.import_module(submod_path)
File “C:\Users\tvers\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py”, line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\hf_api.py”, line 35, in
from huggingface_hub.utils import (
File "E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils_init.py", line 18, in
from . import tqdm as _tqdm # _tqdm is the module
File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\tqdm.py”, line 63, in
from tqdm.auto import tqdm as old_tqdm
ModuleNotFoundError: No module named ‘tqdm.auto’
Press any key to continue . . .
I tried to reinstall everything, but still the same problem. Also did a pip3 install tqdm" or “pip install tqdm --upgrade”
Got: Requirement already satisfied: tqdm in c:\users\tvers\appdata\local\programs\python\python310\lib\site-packages (4.65.1.dev3+gd13dfbf)
Requirement already satisfied: colorama in c:\users\tvers\appdata\local\programs\python\python310\lib\site-packages (from tqdm) (0.4.6)
I’ve exactly the same issue, after a fresh install of stable Diffusion/Automatic 1111.
Everything was working until I added the extensions Canvas Zoom and TempoalNet.
I’ve got all the right Python/pip/tqdm packages installed as far as I can see.
Very frustrating!
Thanks for answering, I manage to fix it, but has not installed all the extetions. I suspect the error is in one of them. (and controll net is not function right yet)
the main problem is the version of tqdm that is automatically installed in the installation process. Here is how I solved the issue under Windows. For Linux just google how to activate the venv in the terminal.
For Win do the following:
Fire up your cmd, browse to your automatic folder and start the activate.bat in your “venv” folder, for me it’s here:
Now you should see (venv) infront of your cmd path.
(venv) C:\Stable_Diffusion\automatic1111>py
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) ......
Type "help", "copyright", "credits" or "license" for more information.
>>> import tqdm
>>> tqdm.__version__
'4.57.0' #<--- This is the one I installed to fix the problem
Now you should see your Version number. If it is lower than than ‘4.57.0’ try the following
There is a dependecie issue with “moviepy” wich is the root of the issue I guess. When you install the 4.57.0 version It’s possible that you get some Errors from the moviepy installation, but now automatic1111 should launch again. Hope it helps.
I’ve installed TemportalKit again recently, but have the problem with “no module named tqdm.auto”, so I couldn’t open A1111 anymore. With your solution “pip install tqdm==4.57.0” I was able to open and work again with A1111, for that thanks a lot, but the problem is that I’m having more errors and I can’t use TemporalKit like months ago.
BTW if someone gets errors related with ffmpeg after installing tqdm==4.57.0, just install ffmpeg from https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z, extract it to "C:\ffmpeg" and add to your variables PATH "C:\ffmpeg\bin".
Only way I can think of is to install another version of tqdm into a different directory and change the import statements in temporal net accordingly.
It is definitely a “dirty” method. The best way is to check which module uses the older version of tqdm and open a ticket in the corresponding git repo. But now, for the hacky people out there. Here’s how you can achieve this on Windows:
Setting up Directories:
First, create two directories where you’d like to install the different versions of tqdm. You can use the Command Prompt for this:
Replace <Version1> and <Version2> with the actual version numbers you’d like to install.
Using the Required Version in Your Code:
Instead of manipulating sys.path, you can directly import the required version of tqdm using its absolute path. Here’s how you can do it:
from C:\path\to\Automatic\venv\tqdm_version1\tqdm import tqdm
Make sure to use double backslashes (\\) in the path since a single backslash is an escape character in Python strings.
That’s it! By directly importing from the absolute path, you can ensure that you’re using the exact version of tqdm that you want, without any ambiguity.
Hope this helps!
If anyone has a more elegant solution or feedback, I’d love to hear it.
Got this issue when installing TemporalKit. Thank you for taking the time to post the solution. Worked for me. I did an upgrade using the following command:
Thank you very much for the solution you provided. I am running webUI on a mac system. I have tried various possible solutions for several hours to no avail. Your solution allowed me to successfully open the SD.