Skip to content

ImportError: cannot import name 'TypeIs' #719

Description

@guterresrafael

Hi,

I have error on command "docker compose --profile auto up --build"

ImportError: cannot import name 'TypeIs' from 'typing_extensions' (/opt/conda/lib/python3.10/site-packages/typing_extensions.py)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions