Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'TypeIs' from 'typing_extensions' #722

Open
2 tasks done
makkarss929 opened this issue Aug 16, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@makkarss929
Copy link

makkarss929 commented Aug 16, 2024

Has this issue been opened before?

  • It is not in the FAQ, I checked.
  • It is not in the issues, I searched.

Describe the bug

Attaching to auto-cpu-1
auto-cpu-1 | /stable-diffusion-webui
auto-cpu-1 | total 772K
auto-cpu-1 | drwxr-xr-x 1 root root 4.0K Aug 12 16:43 .
auto-cpu-1 | drwxr-xr-x 1 root root 4.0K Aug 16 09:04 ..
auto-cpu-1 | -rw-r--r-- 1 root root 48 Aug 12 16:42 .eslintignore
auto-cpu-1 | -rw-r--r-- 1 root root 3.4K Aug 12 16:42 .eslintrc.js
auto-cpu-1 | drwxr-xr-x 8 root root 4.0K Aug 12 16:42 .git
auto-cpu-1 | -rw-r--r-- 1 root root 55 Aug 12 16:42 .git-blame-ignore-revs
auto-cpu-1 | drwxr-xr-x 4 root root 4.0K Aug 12 16:42 .github
auto-cpu-1 | -rw-r--r-- 1 root root 521 Aug 12 16:42 .gitignore
auto-cpu-1 | -rw-r--r-- 1 root root 119 Aug 12 16:42 .pylintrc
auto-cpu-1 | -rw-r--r-- 1 root root 84K Aug 12 16:42 CHANGELOG.md
auto-cpu-1 | -rw-r--r-- 1 root root 243 Aug 12 16:42 CITATION.cff
auto-cpu-1 | -rw-r--r-- 1 root root 657 Aug 12 16:42 CODEOWNERS
auto-cpu-1 | -rw-r--r-- 1 root root 35K Aug 12 16:42 LICENSE.txt
auto-cpu-1 | -rw-r--r-- 1 root root 13K Aug 12 16:42 README.md
auto-cpu-1 | -rw-r--r-- 1 root root 146 Aug 12 16:42 _typos.toml
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 configs
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 embeddings
auto-cpu-1 | -rw-r--r-- 1 root root 167 Aug 12 16:42 environment-wsl2.yaml
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 extensions
auto-cpu-1 | drwxr-xr-x 13 root root 4.0K Aug 12 16:42 extensions-builtin
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 html
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:43 interrogate
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 javascript
auto-cpu-1 | -rw-r--r-- 1 root root 1.3K Aug 12 16:42 launch.py
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 localizations
auto-cpu-1 | drwxr-xr-x 7 root root 4.0K Aug 12 16:42 models
auto-cpu-1 | drwxr-xr-x 7 root root 4.0K Aug 12 16:42 modules
auto-cpu-1 | -rw-r--r-- 1 root root 185 Aug 12 16:42 package.json
auto-cpu-1 | -rw-r--r-- 1 root root 841 Aug 12 16:42 pyproject.toml
auto-cpu-1 | drwxr-xr-x 8 root root 4.0K Aug 12 16:39 repositories
auto-cpu-1 | -rw-r--r-- 1 root root 49 Aug 12 16:42 requirements-test.txt
auto-cpu-1 | -rw-r--r-- 1 root root 371 Aug 12 16:42 requirements.txt
auto-cpu-1 | -rw-r--r-- 1 root root 42 Aug 12 16:42 requirements_npu.txt
auto-cpu-1 | -rw-r--r-- 1 root root 645 Aug 12 16:42 requirements_versions.txt
auto-cpu-1 | -rw-r--r-- 1 root root 411K Aug 12 16:42 screenshot.png
auto-cpu-1 | -rw-r--r-- 1 root root 6.1K Aug 12 16:42 script.js
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 scripts
auto-cpu-1 | -rw-r--r-- 1 root root 43K Aug 12 16:42 style.css
auto-cpu-1 | drwxr-xr-x 4 root root 4.0K Aug 12 16:42 test
auto-cpu-1 | drwxr-xr-x 2 root root 4.0K Aug 12 16:42 textual_inversion_templates
auto-cpu-1 | -rw-r--r-- 1 root root 670 Aug 12 16:42 webui-macos-env.sh
auto-cpu-1 | -rw-r--r-- 1 root root 84 Aug 12 16:42 webui-user.bat
auto-cpu-1 | -rw-r--r-- 1 root root 1.4K Aug 12 16:42 webui-user.sh
auto-cpu-1 | -rw-r--r-- 1 root root 2.3K Aug 12 16:42 webui.bat
auto-cpu-1 | -rw-r--r-- 1 root root 5.3K Aug 12 16:42 webui.py
auto-cpu-1 | -rwxr-xr-x 1 root root 11K Aug 12 16:42 webui.sh
auto-cpu-1 | ./
auto-cpu-1 | model.pt
auto-cpu-1 | ./
auto-cpu-1 | ViT-L-14_stats.th
auto-cpu-1 | Mounted .cache
auto-cpu-1 | mkdir: created directory '/data/config/auto/config_states'
auto-cpu-1 | Mounted config_states
auto-cpu-1 | mkdir: created directory '/stable-diffusion-webui/repositories/CodeFormer'
auto-cpu-1 | mkdir: created directory '/stable-diffusion-webui/repositories/CodeFormer/weights'
auto-cpu-1 | Mounted .cache
auto-cpu-1 | Mounted embeddings
auto-cpu-1 | Mounted config.json
auto-cpu-1 | Mounted models
auto-cpu-1 | Mounted styles.csv
auto-cpu-1 | Mounted ui-config.json
auto-cpu-1 | mkdir: created directory '/data/config/auto/extensions'
auto-cpu-1 | Mounted extensions
auto-cpu-1 | Installing extension dependencies (if any)
auto-cpu-1 | Traceback (most recent call last):
auto-cpu-1 | File "/stable-diffusion-webui/webui.py", line 13, in
auto-cpu-1 | initialize.imports()
auto-cpu-1 | File "/stable-diffusion-webui/modules/initialize.py", line 23, in imports
auto-cpu-1 | import gradio # noqa: F401
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/gradio/init.py", line 3, in
auto-cpu-1 | import gradio.components as components
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/gradio/components/init.py", line 3, in
auto-cpu-1 | from gradio.components.bar_plot import BarPlot
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/gradio/components/bar_plot.py", line 7, in
auto-cpu-1 | import altair as alt
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/init.py", line 650, in
auto-cpu-1 | from altair.vegalite import *
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/vegalite/init.py", line 2, in
auto-cpu-1 | from .v5 import *
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/vegalite/v5/init.py", line 2, in
auto-cpu-1 | from altair.expr.core import datum
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/expr/init.py", line 7, in
auto-cpu-1 | from altair.expr.core import ConstExpression, FunctionExpression
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/expr/core.py", line 6, in
auto-cpu-1 | from altair.utils import SchemaBase
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/utils/init.py", line 15, in
auto-cpu-1 | from .plugin_registry import PluginRegistry
auto-cpu-1 | File "/opt/conda/lib/python3.10/site-packages/altair/utils/plugin_registry.py", line 6, in
auto-cpu-1 | from typing_extensions import TypeAliasType, TypeIs, TypeVar
auto-cpu-1 | ImportError: cannot import name 'TypeIs' from 'typing_extensions' (/opt/conda/lib/python3.10/site-packages/typing_extensions.py)
auto-cpu-1 exited with code 1

Which UI

auto-cpu?

Hardware / Software

  • OS: ubuntu
  • OS version:
  • Docker Version:
  • Docker compose version:
  • Repo version:
  • RAM:
  • GPU/VRAM:

Steps to Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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

@makkarss929 makkarss929 added the bug Something isn't working label Aug 16, 2024
@DynoW
Copy link

DynoW commented Aug 16, 2024

Try the solution of yasu-nxt in #719

@T0T4R4
Copy link

T0T4R4 commented Nov 29, 2024

Identical tickets : #719 , #729 , #742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants