AbdBarho / stable-diffusion-webui-docker

Easy Docker setup for Stable Diffusion with user-friendly UI
Other
6.77k stars 1.13k forks source link

ImportError: cannot import name 'auto' from 'tqdm' (/usr/local/lib/python3.10/site-packages/tqdm/__init__.py) #542

Closed bg1avd closed 1 year ago

bg1avd commented 1 year ago

Has this issue been opened before?

Describe the bug When I run command "docker compose --profile auto up --build" to set auto ui docker image, this error pop up.

Which UI

auto

Hardware / Software

Steps to Reproduce run: docker compose --profile auto up --build

Additional context Any other context about the problem here. If applicable, add screenshots to help explain your problem.

yotaken commented 1 year ago

This happened to me after some extension install (using the own UI not external installation). Seems like the dependency 'tqdm' in given extension, breaks the ecosystem due version incompatibility. I fixed this by editing the entry point of the given container in docker-compose.yml:

This fixed to me the issue.

I would close this Issue since, in my case, it came after some extension installation and it's not a project issue (maybe a nice to have if it can detect before installation some weird problems with dependencies) .

bg1avd commented 1 year ago

I try to follow you guide to upgrade tqdm package in docker container. But the error still at here.

bg1avd commented 1 year ago

I change some step of yours:

  1. Add in line 33 this entrypoint: /bin/bash, This will lead to a shell instead of loading webui.
  2. At other terminal run: docker -it exec docker-container-name /bin/bash
  3. run commad : pip uninstall tqdm
  4. pip install tqdm and exit the docker container
  5. Remove the line in the docker-compose.yml file
  6. Start container as usual
willcitizen commented 1 year ago

putting pip install -U tqdm in data/config/auto/startup.sh also resolves for now. I think the culprit may have been txt2video I saw it mentioned in a report elsewhere and it was one of the one's I was trying to install.

AbdBarho commented 1 year ago

I see, I will close this as an extension problem, it is almost impossible to not have these sort of issues, if it still persists, feel free to re-open.