CiaraStrawberry / TemporalKit

An all in one solution for adding Temporal Stability to a Stable Diffusion Render via an automatic1111 extension
GNU General Public License v3.0
1.91k stars 125 forks source link

No module named 'tqdm.auto' after installing temporalkit #81

Open bialyjerozy opened 1 year ago

bialyjerozy commented 1 year ago

After installing temporalnet i can't run automatic1111 anymore. At the end i got "ModuleNotFoundError: No module named 'tqdm.auto'" I've tried reinstalling whole python, installing and updating "pip install tqdm" and stable diffusion, deleting venv folder... This is the error after i add temporalnet addon on fresh installation and click restart UI. I'm really stuck, i don't know where is the problem located. I'm not a programmer, so i don't know how i can check it deeper... Please help

venv "C:\diffusion\diff clean\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.5.1 Commit hash: https://github.com/vladmandic/automatic/commit/68f336bd994bed5442ad95bad6b6ad5564a5409a Installing requirements for TemporalKit extension

Launching Web UI with arguments: --xformers --autolaunch Traceback (most recent call last): File "C:\diffusion\diff clean\stable-diffusion-webui\launch.py", line 39, in main() File "C:\diffusion\diff clean\stable-diffusion-webui\launch.py", line 35, in main start() File "C:\diffusion\diff clean\stable-diffusion-webui\modules\launch_utils.py", line 390, in start import webui File "C:\diffusion\diff clean\stable-diffusion-webui\webui.py", line 44, in import gradio # noqa: F401 File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradioinit.py", line 3, in import gradio.components as components File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 34, in from gradio_client import media_data File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradio_clientinit.py", line 1, in from gradio_client.client import Client File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradio_client\client.py", line 24, in from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\huggingface_hubinit.py", line 322, in getattr submod = importlib.import_module(submod_path) File "C:\Users\bialy\AppData\Local\Programs\Python\Python310\lib\importlibinit.py", line 126, in import_module return _bootstrap.gcd_import(name[level:], package, level) File "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\hf_api.py", line 35, in from huggingface_hub.utils import ( File "C:\diffusion\diff clean\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 "C:\diffusion\diff clean\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 . . .

swingppx commented 1 year ago

I was having the same error, tried everything listed on different posts. Turned out it was a problem with FFmpeg despite correctly having it listed in Path variables.

The following dumb way worked Put ffprobe.exe to SD root folder SD root folder\system SD root folder\webui

OMonedr commented 1 year ago

i found solution


Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Miracle12345678 commented 1 year ago

我找到了解决方案

从stablediffusionfolder/venv/Lib run pip install tqdm --ignore-install tqdm --ignore-install 中删除tqdm和“tqdm-4.11.2.dist-info”文件夹

转到:C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages 将 tqdm 和 tqdm-4.65.0.dist-info 文件夹复制到 stablediffusionfolder/venv/Lib

可能一定是更简单的方法,但我不太熟悉Python,pip等

真的解决了!!! 感谢大佬

bialyjerozy commented 1 year ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Yes! i found it yesterday, forgot to give here solution, problem finally solved! :)

syosyo13 commented 1 year ago

Another solution is to use conda prompt(windows) open .\stable-diffusion-webui\venv\Scripts run .\activate.bat then run pip install tqdm==4.65.0 thanks for @OMonedr's idea

skubolek commented 1 year ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Its work - thanks !

Vetrov0x commented 1 year ago

i found solution Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib Probably must be easier way, but im not too familiar with Python, pip etc

Yes! i found it yesterday, forgot to give here solution, problem finally solved! :)

Not for me unfortunately... I tried both solutions, none on them worked. still getting this :

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
current transparent-background 1.2.4
Installing requirements for TemporalKit extension
Launching Web UI with arguments: --gradio-auth --listen --enable-insecure-extension-access --api --share --opt-sdp-attention
Traceback (most recent call last):
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\webui\launch.py", line 48, in <module>
    main()
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\webui\launch.py", line 44, in main
    start()
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\webui\modules\launch_utils.py", line 432, in start
    import webui
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\webui\webui.py", line 13, in <module>
    initialize.imports()
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\webui\modules\initialize.py", line 21, in imports
    import gradio  # noqa: F401
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\gradio\components\annotated_image.py", line 8, in <module>
    from gradio_client.documentation import document, set_documentation_group
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\gradio_client\__init__.py", line 1, in <module>
    from gradio_client.client import Client
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\gradio_client\client.py", line 24, in <module>
    from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\huggingface_hub\__init__.py", line 322, in __getattr__
    submod = importlib.import_module(submod_path)
  File "importlib\__init__.py", line 126, in import_module
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\huggingface_hub\hf_api.py", line 35, in <module>
    from huggingface_hub.utils import (
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\huggingface_hub\utils\__init__.py", line 18, in <module>
    from . import tqdm as _tqdm  # _tqdm is the module
  File "C:\Users\Daedar\Documents\GitHub\AI\sd.webui\system\python\lib\site-packages\huggingface_hub\utils\tqdm.py", line 63, in <module>
    from tqdm.auto import tqdm as old_tqdm
ModuleNotFoundError: No module named 'tqdm.auto'
Press any key to continue . . . 
AIAzagoth commented 1 year ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

It worked! Thank you very much!

cyberdenz commented 1 year ago

Here is what worked for me :

install tqdm using PIP inside venv\scripts folder, doing this installs tqdm on stablediffusion library. "C:\stable-diffusion-webui\venv\Scripts>pip install tqdm==4.66.0"

JacksyJ commented 12 months ago

я нашел решение

Удалите папки tqdm и «tqdm-4.11.2.dist-info» из стабильной папки/venv/Lib, запустите pip install tqdm --ignore-installed

Перейдите в: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages скопируйте папки tqdm и tqdm-4.65.0.dist-info в стабильную историю/venv/Lib.

Вероятно, это более простой способ, но я слишком не знаком с Python, pip и т. д. д.

I tried this method. I opened pip.exe, but nothing happened. Python opened and after 1 sec closed. And i don't have tqdm-4.65.0.dist-info in C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages

So. I cant solve this problem(

JacksyJ commented 12 months ago

I'v solved it.

First, we have to upgrade pip, using cmd: python.exe -m pip install --upgrade tqdm

After that I moved tqdm to SD/venv/Lib.

Thanks OMonedr

cyberdenz commented 12 months ago

я нашел решение Удалите папки tqdm и «tqdm-4.11.2.dist-info» из стабильной папки/venv/Lib, запустите pip install tqdm --ignore-installed Перейдите в: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages скопируйте папки tqdm и tqdm-4.65.0.dist-info в стабильную историю/venv/Lib. Вероятно, это более простой способ, но я слишком не знаком с Python, pip и т. д. д.

I tried this method. I opened pip.exe, but nothing happened. Python opened and after 1 sec closed. And i don't have tqdm-4.65.0.dist-info in C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages

So. I cant solve this problem(

That method installs tqdm in Python library site packages. The solution is install inside venv site packages: image

Nykfp9 commented 11 months ago

Here is what worked for me :

install tqdm using PIP inside venv\scripts folder, doing this installs tqdm on stablediffusion library. "C:\stable-diffusion-webui\venv\Scripts>pip install tqdm==4.66.0"

thank you so much it works perfectly

cevherben commented 11 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

thank you so much

filmonica commented 11 months ago

Another solution is to use conda prompt(windows) open .\stable-diffusion-webui\venv\Scripts run .\activate.bat then run pip install tqdm==4.65.0 thanks for @OMonedr's idea

It worked for me. thank you very much!

GodisGod commented 11 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

nice job bro! i solved! thank you!

wonghuaxia commented 11 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Think u very much!!!问题解决了!!!

barutlift commented 10 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

so thanks man

mAlwareW0lf commented 9 months ago

Launching Web UI with arguments: Traceback (most recent call last): File "D:\diff\webui\launch.py", line 48, in main() File "D:\diff\webui\launch.py", line 44, in main start() File "D:\diff\webui\modules\launch_utils.py", line 432, in start import webui File "D:\diff\webui\webui.py", line 13, in initialize.imports() File "D:\diff\webui\modules\initialize.py", line 21, in imports import gradio # noqa: F401 File "D:\diff\system\python\lib\site-packages\gradio__init.py", line 3, in import gradio.components as components File "D:\diff\system\python\lib\site-packages\gradio\components\init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "D:\diff\system\python\lib\site-packages\gradio\components\annotated_image.py", line 8, in from gradio_client.documentation import document, set_documentation_group File "D:\diff\system\python\lib\site-packages\gradio_client\init.py", line 1, in from gradio_client.client import Client File "D:\diff\system\python\lib\site-packages\gradio_client\client.py", line 24, in from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage File "D:\diff\system\python\lib\site-packages\huggingface_hub\init.py", line 357, in getattr submod = importlib.import_module(submod_path) File "importlib\init__.py", line 126, in import_module File "D:\diff\system\python\lib\site-packages\huggingface_hub\hf_api.py", line 47, in from tqdm.auto import tqdm as base_tqdm ModuleNotFoundError: No module named 'tqdm.auto'

So, i tried everything that i saw here but nothing solved the problem for me. This problem arrived after i tried to install "text2video"

bluespork commented 9 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

This worked for me :) Thanks!

risdh commented 9 months ago

如果你使用秋叶整合包只需要启动命令提示符输入python -m pip uninstall tqdm 后在输入python -m pip install tqdm

Bimmersports commented 9 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Also worked for me, after trying different ways. Many thanks!!

jdalebrook commented 8 months ago

Enter in stable diffusion folder, run "update.bat ", and later run "run.bat". for me it worked.

jie5782 commented 8 months ago

pip install "git+https://github.com/tqdm/tqdm.git@devel#egg=tqdm"

jie5782 commented 8 months ago

安装temporalnet后我不能再运行automatic1111了。最后我得到“ModuleNotFoundError:没有名为'tqdm.auto'的模块” 我尝试重新安装整个python,安装和更新“pip install tqdm”和稳定扩散,删除venv文件夹... 这是我添加后的错误全新安装的temporalnet插件并单击重新启动UI。我真的很困惑,我不知道问题出在哪里。我不是程序员,所以我不知道如何更深入地检查它......请帮助

venv“C:\diffusion\diff clean\stable-diffusion-webui\venv\Scripts\Python.exe” Python 3.10.6(tags/v3.10.6:9c7b4bd,2022 年 8 月 1 日,21:53:49)[MSC v .1932 64 位 (AMD64)] 版本:v1.5.1 提交哈希:vladmandic/automatic@ 68f336b TemporalKit 扩展的安装要求

使用参数启动 Web UI: --xformers --autolaunch Traceback (最近一次调用最后一次): File "C:\diffusion\diff clean\stable-diffusion-webui\launch.py​​", line 39, in main() File " C:\diffusion\diff clean\stable-diffusion-webui\launch.py​​”,第 35 行,在主 start() 文件“C:\diffusion\diff clean\stable-diffusion-webui\modules\launch_utils.py”,第 390 行,在开始 导入 webui 文件“C:\diffusion\diff clean\stable-diffusion-webui\webui.py”中,第 44 行,在 import gradio # noqa: F401 文件“C:\diffusion\diff clean\stable-扩散-webui\venv\lib\site-packages\gradioinit.py”,第 3 行, 导入 gradio.components 作为组件 文件“C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages \gradio\components.py”,第 34 行,来自 gradio_client import media_data 文件“C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradio_clientinit.py”,第 1 行, 来自gradio_client.client 导入客户 端文件“C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\gradio_client\client.py”,第 24 行,来自 Huggingface_hub 导入 CommitOperationAdd、SpaceHardware、SpaceStage 文件“ C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\huggingface_hubinit.py”,第 322 行,在 getattr submod = importlib.import_module(submod_path) 文件“C:\Users\bialy\AppData \Local\Programs\Python\Python310\lib\importlibinit.py”,第 126 行,在 import_module return _bootstrap.gcd_import(name[level:], package, level) 文件“C:\diffusion\diff clean\stable-diffusion- webui\venv\lib\site-packages\huggingface_hub\hf_api.py",第 35 行,来自 Huggingface_hub.utils import ( 文件 "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages \huggingface_hub\utils_init.py",第 18 行,来自 . import tqdm as _tqdm # _tqdm 是模块 文件 "C:\diffusion\diff clean\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\tqdm.py",第 63 行,来自 tqdm.auto import tqdm as old_tqdm ModuleNotFoundError:没有名为“tqdm.auto”的模块 按任意键继续。。。

pip install "git+https://github.com/tqdm/tqdm.git@devel#egg=tqdm"

kretowicz14 commented 8 months ago

I make those steps:

In webui.bat after lines in :check_pip (after line 28) added line:

%PYTHON% -mpip install tqdm==4.65.0

To requiremets.txt added

tqdm

To requirements_version.txt added

tqdm==4.65.0

Run start.bat, after install i removed added line from webui.bat and all is working

MrFu-Arcade commented 8 months ago

This issue caused by TemporalKit's installer change tqdm to an old version. I try all the ways above,But not work. And I change the location to run Python to Update tqdm,It work. To sovle it: goto your SD Folder and then enter venv\Scripts,just like , E:\stable-diffusion-webui\venv\Script,and run powershell in this folder,copy this to run:

.\python.exe -m pip install --upgrade tqdm

and when it update finish,it will solve the problem.

version SDwebui 1.7 Time: 2024.1.7

heyafro commented 8 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

worked for me

TheWingAg90 commented 7 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

thanks, nice work. done!

shadow5010 commented 7 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

Boss thanks you!!

shadow5010 commented 7 months ago

This issue caused by TemporalKit's installer change tqdm to an old version. I try all the ways above,But not work. And I change the location to run Python to Update tqdm,It work. To sovle it: goto your SD Folder and then enter venv\Scripts,just like , E:\stable-diffusion-webui\venv\Script,and run powershell in this folder,copy this to run:

.\python.exe -m pip install --upgrade tqdm

and when it update finish,it will solve the problem.

version SDwebui 1.7 Time: 2024.1.7

Boss thanks you!!

dislive commented 7 months ago

i found solution

Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed

Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

Probably must be easier way, but im not too familiar with Python, pip etc

work thx

elliotvaucher commented 6 months ago

Just sharing my two cents here, but for some reason I couldn't locate the '\venv\Scripts' folder everyone is talking about.

What did the trick is simply to :

Finally worked.

Giribot commented 2 months ago

Hello !

If you use the launcher "Stability Matrix": Go to "Packages" Choose your WebUi with your failed temporalkit (No module named 'tqdm.auto') Click the three dots

tqdm

Click on "Python Packages"

Research TQDM

Sans titrtqdmge

Install the last version

When it's done, launch your Webui !It's work