SD auto 1111 No module named 'tqdm.auto'
HiI got this problem: Launching Web UI with arguments: --xformersTraceback (most recent call last):File “E:\Stablediffdel3\stable-diffusion-webui\launch.py”, line 39, inmain()File “E:\Stablediffdel3\stable-diffusion-webui\launch.py”, line 35, in mainstart()File “E:\Stablediffdel3\stable-diffusion-webui\modules\launch_utils.py”, line 390, in startimport webuiFile “E:\Stablediffdel3\stable-diffusion-webui\webui.py”, line 44, inimport gradio  # noqa: F401File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_init_.py”, line 3, inimport gradio.components as componentsFile “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py”, line 34, infrom gradio_client import media_dataFile “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_client_init_.py”, line 1, infrom gradio_client.client import ClientFile “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\gradio_client\client.py”, line 24, infrom huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStageFile “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub_init_.py”, line 322, ingetattrsubmod = importlib.import_module(submod_path)File “C:\Users\tvers\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py”, line 126, in import_modulereturn _bootstrap.gcd_import(name[level:], package, level)File “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\REDACTED_TOKEN.py”, line 35, infrom huggingface_hub.utils import (File "E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils_init.py", line 18, infrom . import tqdm as _tqdm  # _tqdm is the moduleFile “E:\Stablediffdel3\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\tqdm.py”, line 63, infrom tqdm.auto import tqdm as old_tqdmModuleNotFoundError: 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)Can anyone help?
2023-08-07T11:01:31Z
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!
2023-08-07T14:34:49Z
Hello GwarAI,I had the same issue and was struggling for hours to fix this.I did fix it with recreating the virtual environment for python following this procedure:https://mothergeo-py.readthedocs.io/en/latest/development/how-to/venv-win.htmlProblem with “ModuleNotFoundError: No module named ‘tqdm.auto’” was solved after that.Kind regards, Rod
2023-08-08T12:27:22Z
HiThanks 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)
2023-08-10T03:28:45Z
stable-diffusion-webui can copy python environmentyou need in E:\Stablediffdel3\stable-diffusion-webui install tqdm
2023-08-12T17:58:13Z
Can you please explain a little bit how to do this ? I have the same issue as OP and I can’t seem to fix itit happened after installing an extension.
2023-08-13T18:32:05Z
Did put the python path in the webui.bat@echooffset PYTHON=“C:\Users\yourname\AppData\Local\Programs\Python\Python310\python.exe”set GIT=set VENV_DIR=set COMMANDLINE_ARGS= --xformerscall webui.bat
2023-08-27T12:49:05Z
Hey guys,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:C:\Stable_Diffusion\automatic1111\venv\Scripts\activate.batNow 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 problemNow you should see your Version number. If it is lower than than ‘4.57.0’ try the following(venv) P:\Stable_Diffusion\automatic1111>pip install tqdm==4.57.0There 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.
2023-08-27T15:48:19Z
Thank you@bento234its worked for me.
2023-08-28T08:11:20Z
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 fromhttps://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z, extract it to "C:\ffmpeg" and add to your variables PATH "C:\ffmpeg\bin".
2023-08-28T18:50:33Z
Only way I can think of is to install another version oftqdminto 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 oftqdmand 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 oftqdm. You can use the Command Prompt for this:mkdir C:\path\to\Automatic\venv\tqdm_version1
mkdir C:\path\to\Automatic\venv\tqdm_version2ReplaceC:\path\to\with your preferred directory path.Installing Different Versions:To install different versions oftqdminto these directories, you can usepipwith the--targetoption:pip install tqdm==<Version1> --target=C:\path\to\Automatic\venv\tqdm_version1
pip install tqdm==<Version2> --target=C:\path\to\Automatic\venv\tqdm_version2Replace<Version1>and<Version2>with the actual version numbers you’d like to install.Using the Required Version in Your Code:Instead of manipulatingsys.path, you can directly import the required version oftqdmusing its absolute path. Here’s how you can do it:from C:\path\to\Automatic\venv\tqdm_version1\tqdm import tqdmMake 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 oftqdmthat you want, without any ambiguity.Hope this helps!If anyone has a more elegant solution or feedback, I’d love to hear it.
2023-08-30T01:07:42Z
YALL DO THIS IN WINDOWS Command Line:C:\Users\ (YOURUSERNAME)\Desktop\stable-diffusion-webui\venv\Scripts\activate.batpip install moviepy --upgradeOR IN POWERSHELL:C:\Users\ (YOURUSERNAME)\Desktop\stable-diffusion-webui\venv\Scripts\activate.ps1pip install moviepy --upgradeRESTART A1111  and BAM!  ALL BUENO!
2023-08-30T12:54:33Z
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:python.exe -m pip install --upgrade tqdm
2023-09-01T12:38:18Z
XDDDDDDDDDDDDD no need to codingjust add git pull to auto update and repairlike this:@echooffset PYTHON=“C:\Users.…\Python310\python.exe”set GIT=set VENV_DIR=set COMMANDLINE_ARGS= --xformersgit pullcall webui.bat
2023-09-02T23:44:16Z
Can you please explain a little bit how to do this ? I have the same issue and I can’t seem to fix it, pleaaaaaaaaaaaaaaaaas
2023-09-07T00:28:14Z
easy solution1- Delete corrupted extensions from the extension folder2- delete venv folder3- restart SDit will download some files and will work
2023-10-01T10:17:27Z
issue withtqdmhas been resolved with the help of Bento234! It’s wonderful when the open-source community comes together to assist one another.
2023-10-12T10:30:52Z
Can anyone show me how to fix errors when installing Tempora Kit on Jupiter Lab? Same mistake
2023-10-12T10:31:54Z
Can anyone show me how to fix errors when installing Tempora Kit on Jupiter Lab? Same mistake
2023-10-17T13:06:45Z
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.
No date available
No reply text available