GithubHelp home page GithubHelp logo

[Bug]: ImportError: cannot import name 'auto' from 'tqdm' (G:\GitFork\stable-diffusion-webui-new\venv\lib\site-packages\tqdm\__init__.py) about sd-webui-text2video HOT 8 CLOSED

KaiJia2017 avatar KaiJia2017 commented on June 2, 2024 1
[Bug]: ImportError: cannot import name 'auto' from 'tqdm' (G:\GitFork\stable-diffusion-webui-new\venv\lib\site-packages\tqdm\__init__.py)

from sd-webui-text2video.

Comments (8)

Rfra1971 avatar Rfra1971 commented on June 2, 2024 4

I solved the problem by backing up the 'tqdm' and 'tqdm-4.65.0.dist-info' folders in 'env/lib/site-packages' of the stable diffusion before installing the extension. After installation, I removed the 2 folders named 'tqdm' and 'tqdm-4.11.2.dist-info' from the 'site-packages' folder and replaced them with the ones from the backup, as the extension removed the new version and installed a lower version of 'tqdm'.

from sd-webui-text2video.

miwneva1994 avatar miwneva1994 commented on June 2, 2024 1

I solved the problem by backing up the 'tqdm' and 'tqdm-4.65.0.dist-info' folders in 'env/lib/site-packages' of the stable diffusion before installing the extension. After installation, I removed the 2 folders named 'tqdm' and 'tqdm-4.11.2.dist-info' from the 'site-packages' folder and replaced them with the ones from the backup, as the extension removed the new version and installed a lower version of 'tqdm'.

Solved by running
pip install tqdm==4.65.0

from sd-webui-text2video.

kabachuha avatar kabachuha commented on June 2, 2024 1

Not related to this extension 🙃

from sd-webui-text2video.

skittixch avatar skittixch commented on June 2, 2024 1

Not related to this extension 🙃

I don't think that's the case...when I install this extension, my automatic1111 install breaks entirely. I'm trying to do miwneva1994's suggestion, but I'm running in docker, and it's hard to go in and change things when my container won't even run after I install. you might take another look at this...

from sd-webui-text2video.

jrknox1977 avatar jrknox1977 commented on June 2, 2024

I am receiving the same error. With surprisingly almost the same specs as the user above.

from sd-webui-text2video.

FONGKA2 avatar FONGKA2 commented on June 2, 2024

Same here, and killed my SD
i tried to change some stuff version which inside of my SD like transformer but it's doesnt work
so i install a whole new SD with text2vid extension with hope a fresh start will work
but the same, new SD setup also killed by text2vid

Python 3.10.6+2080TI+WIN10

`Already up to date.

venv "D:\SD\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: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Launching Web UI with arguments: --no-half-vae --no-half --medvram --xformers --force-enable-xformers
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\launch.py", line 39, in
main()
File "D:\SD\stable-diffusion-webui\launch.py", line 35, in main
start()
File "D:\SD\stable-diffusion-webui\modules\launch_utils.py", line 390, in start
import webui
File "D:\SD\stable-diffusion-webui\webui.py", line 39, in
import pytorch_lightning # noqa: F401 # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning_init_.py", line 35, in
from pytorch_lightning.callbacks import Callback # noqa: E402
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks_init_.py", line 14, in
from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in
from pytorch_lightning.callbacks.callback import Callback
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in
from torchmetrics import Metric
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\torchmetrics_init_.py", line 14, in
from torchmetrics import functional # noqa: E402
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional_init_.py", line 121, in
from torchmetrics.functional.text.deprecated import bleu_score as bleu_score
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text_init
.py", line 31, in
from torchmetrics.functional.text.bert import bert_score
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\bert.py", line 25, in
from torchmetrics.functional.text.helper_embedding_metric import (
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 27, in
from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers_init
.py", line 30, in
from . import dependency_versions_check
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers\dependency_versions_check.py", line 17, in
from .utils.versions import require_version, require_version_core
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers\utils_init_.py", line 34, in
from .generic import (
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\generic.py", line 29, in
from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 34, in
from . import logging
File "D:\SD\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\logging.py", line 31, in
from tqdm import auto as tqdm_lib
ImportError: cannot import name 'auto' from 'tqdm' (D:\SD\stable-diffusion-webui\venv\lib\site-packages\tqdm_init_.py)`

from sd-webui-text2video.

FONGKA2 avatar FONGKA2 commented on June 2, 2024

I solved the problem by backing up the 'tqdm' and 'tqdm-4.65.0.dist-info' folders in 'env/lib/site-packages' of the stable diffusion before installing the extension. After installation, I removed the 2 folders named 'tqdm' and 'tqdm-4.11.2.dist-info' from the 'site-packages' folder and replaced them with the ones from the backup, as the extension removed the new version and installed a lower version of 'tqdm'.

It's work!

from sd-webui-text2video.

KaiJia2017 avatar KaiJia2017 commented on June 2, 2024

I removed the 2 folders named 'venv' and 'extensions/text2video',restart webui.bat,problem solved!

from sd-webui-text2video.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.