l1na-forever / stable-diffusion-rocm-docker

Stable Diffusion Docker image preconfigured for usage with AMD Radeon cards
128 stars 22 forks source link

AttributeError: module 'h11' has no attribute 'Event' #15

Closed Folix0 closed 1 year ago

Folix0 commented 1 year ago

I can't seem to pass the last step of running the container. After executing drun --name stable-diffusion l1naforever/stable-diffusion-rocm:latest I get this output. Running on Ubuntu 20.04.5 LTS, RX 6600.

Any ideas on how to fix this?

Python 3.7.13 (default, Mar 29 2022, 02:18:16) 
[GCC 7.5.0]
Commit hash: 08b3f7aef15f74f4d2254b1274dd66fcc7940348
Installing gfpgan
Installing clip
Cloning Stable Diffusion into repositories/stable-diffusion...
Cloning Taming Transformers into repositories/taming-transformers...
Cloning K-diffusion into repositories/k-diffusion...
Cloning CodeFormer into repositories/CodeFormer...
Cloning BLIP into repositories/BLIP...
Installing requirements for CodeFormer
Installing requirements for Web UI
Launching Web UI with arguments: --precision full --no-half
Traceback (most recent call last):
  File "launch.py", line 169, in <module>
    start_webui()
  File "launch.py", line 163, in start_webui
    import webui
  File "/sd/webui.py", line 12, in <module>
    from modules import devices, sd_samplers
  File "/sd/modules/sd_samplers.py", line 10, in <module>
    from modules import prompt_parser, devices, processing
  File "/sd/modules/processing.py", line 13, in <module>
    import modules.sd_hijack
  File "/sd/modules/sd_hijack.py", line 10, in <module>
    import modules.textual_inversion.textual_inversion
  File "/sd/modules/textual_inversion/textual_inversion.py", line 12, in <module>
    from modules import shared, devices, sd_hijack, processing, sd_models
  File "/sd/modules/shared.py", line 7, in <module>
    import gradio as gr
  File "/opt/conda/lib/python3.7/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/opt/conda/lib/python3.7/site-packages/gradio/components.py", line 39, in <module>
    from gradio import media_data, processing_utils, utils
  File "/opt/conda/lib/python3.7/site-packages/gradio/processing_utils.py", line 17, in <module>
    from gradio import encryptor, utils
  File "/opt/conda/lib/python3.7/site-packages/gradio/utils.py", line 33, in <module>
    import httpx
  File "/opt/conda/lib/python3.7/site-packages/httpx/__init__.py", line 2, in <module>
    from ._api import delete, get, head, options, patch, post, put, request, stream
  File "/opt/conda/lib/python3.7/site-packages/httpx/_api.py", line 4, in <module>
    from ._client import Client
  File "/opt/conda/lib/python3.7/site-packages/httpx/_client.py", line 29, in <module>
    from ._transports.default import AsyncHTTPTransport, HTTPTransport
  File "/opt/conda/lib/python3.7/site-packages/httpx/_transports/default.py", line 30, in <module>
    import httpcore
  File "/opt/conda/lib/python3.7/site-packages/httpcore/__init__.py", line 1, in <module>
    from ._api import request, stream
  File "/opt/conda/lib/python3.7/site-packages/httpcore/_api.py", line 5, in <module>
    from ._sync.connection_pool import ConnectionPool
  File "/opt/conda/lib/python3.7/site-packages/httpcore/_sync/__init__.py", line 1, in <module>
    from .connection import HTTPConnection
  File "/opt/conda/lib/python3.7/site-packages/httpcore/_sync/connection.py", line 13, in <module>
    from .http11 import HTTP11Connection
  File "/opt/conda/lib/python3.7/site-packages/httpcore/_sync/http11.py", line 44, in <module>
    class HTTP11Connection(ConnectionInterface):
  File "/opt/conda/lib/python3.7/site-packages/httpcore/_sync/http11.py", line 140, in HTTP11Connection
    self, event: h11.Event, timeout: Optional[float] = None
AttributeError: module 'h11' has no attribute 'Event'

pip list output:

Package                Version             
---------------------- --------------------
apturl                 0.5.2               
bcrypt                 3.1.7               
blinker                1.4                 
Brlapi                 0.7.0               
certifi                2019.11.28          
chardet                3.0.4               
Click                  7.0                 
colorama               0.4.3               
command-not-found      0.3                 
cryptography           2.8                 
cupshelpers            1.0                 
dbus-python            1.2.16              
defer                  1.0.6               
distro                 1.4.0               
distro-info            0.23ubuntu1         
duplicity              0.8.12.0            
entrypoints            0.3                 
fasteners              0.14.1              
future                 0.18.2              
httplib2               0.14.0              
idna                   2.8                 
keyring                18.0.1              
language-selector      0.1                 
launchpadlib           1.10.13             
lazr.restfulclient     0.14.2              
lazr.uri               1.0.3               
lockfile               0.12.2              
louis                  3.12.0              
macaroonbakery         1.3.1               
Mako                   1.1.0               
MarkupSafe             1.1.0               
monotonic              1.5                 
netifaces              0.10.4              
oauthlib               3.1.0               
olefile                0.46                
paramiko               2.6.0               
pexpect                4.6.0               
Pillow                 7.0.0               
pip                    20.0.2              
protobuf               3.6.1               
pycairo                1.16.2              
pycups                 1.9.73              
PyGObject              3.36.0              
PyJWT                  1.7.1               
pymacaroons            0.13.0              
PyNaCl                 1.3.0               
pyRFC3339              1.1                 
python-apt             2.0.0+ubuntu0.20.4.8
python-dateutil        2.7.3               
python-debian          0.1.36ubuntu1       
pytz                   2019.3              
pyxdg                  0.26                
PyYAML                 5.3.1               
reportlab              3.5.34              
requests               2.22.0              
requests-unixsocket    0.2.0               
SecretStorage          2.3.1               
setuptools             45.2.0              
simplejson             3.16.0              
six                    1.14.0              
systemd-python         234                 
ubuntu-advantage-tools 27.12               
ubuntu-drivers-common  0.0.0               
ufw                    0.36                
unattended-upgrades    0.1                 
urllib3                1.25.8              
usb-creator            0.3.7               
wadllib                1.3.3               
wheel                  0.34.2              
xkit                   0.0.0