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

Compatibility issue despite updating httpx and httpcore, potentially with the specific version of gradio #14264

Closed
1 task done
Nisnaica opened this issue Dec 9, 2023 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@Nisnaica
Copy link

Nisnaica commented Dec 9, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

I deleted the venve folder in automatic 1111 adviced by a YouTuber "for a smoother run" and after automatic reinstallation, 1111 won´t load.

I have checked here and with ChatGPT but it can´t resolve this compatibility issue.

Steps to reproduce the problem

(venv) D:\A1111\stable-diffusion-webui>pip list
Package Version


absl-py 2.0.0
accelerate 0.21.0
addict 2.4.0
aenum 3.1.15
aiofiles 23.2.1
aiohttp 3.9.1
aiosignal 1.3.1
altair 5.2.0
annotated-types 0.6.0
antlr4-python3-runtime 4.9.3
anyio 3.7.1
async-timeout 4.0.3
attrs 23.1.0
basicsr 1.4.2
beautifulsoup4 4.12.2
blendmodes 2022
boltons 23.1.1
cachetools 5.3.2
certifi 2023.11.17
charset-normalizer 3.3.2
clean-fid 0.1.35
click 8.1.7
clip 1.0
colorama 0.4.6
contourpy 1.2.0
cycler 0.12.1
deprecation 2.1.0
einops 0.4.1
exceptiongroup 1.2.0
facexlib 0.3.0
fastapi 0.94.0
ffmpy 0.3.1
filelock 3.13.1
filterpy 1.4.5
fonttools 4.46.0
frozenlist 1.4.0
fsspec 2023.12.1
ftfy 6.1.3
future 0.18.3
gdown 4.7.1
gfpgan 1.3.8
gitdb 4.0.11
GitPython 3.1.32
google-auth 2.25.1
google-auth-oauthlib 1.1.0
gradio 3.41.2
gradio_client 0.5.0
grpcio 1.59.3
h11 0.12.0
httpcore 0.15.0
httpx 0.25.1
huggingface-hub 0.19.4
idna 3.6
imageio 2.33.0
importlib-metadata 7.0.0
importlib-resources 6.1.1
inflection 0.5.1
Jinja2 3.1.2
jsonmerge 1.8.0
jsonschema 4.20.0
jsonschema-specifications 2023.11.2
kiwisolver 1.4.5
kornia 0.6.7
lark 1.1.2
lazy_loader 0.3
lightning-utilities 0.10.0
llvmlite 0.41.1
lmdb 1.4.1
lpips 0.1.4
Markdown 3.5.1
MarkupSafe 2.1.3
matplotlib 3.8.2
mpmath 1.3.0
multidict 6.0.4
networkx 3.2.1
numba 0.58.1
numpy 1.23.5
oauthlib 3.2.2
omegaconf 2.2.3
open-clip-torch 2.20.0
opencv-python 4.8.1.78
orjson 3.9.10
packaging 23.2
pandas 2.1.3
piexif 1.1.3
Pillow 9.5.0
pip 23.3.1
platformdirs 4.1.0
protobuf 3.20.3
psutil 5.9.5
pyasn1 0.5.1
pyasn1-modules 0.3.0
pydantic 1.10.13
pydantic_core 2.14.5
pydub 0.25.1
pyparsing 3.1.1
PySocks 1.7.1
python-dateutil 2.8.2
python-multipart 0.0.6
pytorch-lightning 1.9.4
pytz 2023.3.post1
PyWavelets 1.5.0
PyYAML 6.0.1
realesrgan 0.3.0
referencing 0.31.1
regex 2023.10.3
requests 2.31.0
requests-oauthlib 1.3.1
resize-right 0.0.2
rpds-py 0.13.2
rsa 4.9
safetensors 0.3.1
scikit-image 0.21.0
scipy 1.11.4
semantic-version 2.10.0
sentencepiece 0.1.99
setuptools 63.2.0
six 1.16.0
smmap 5.0.1
sniffio 1.3.0
soupsieve 2.5
starlette 0.26.1
sympy 1.12
tb-nightly 2.16.0a20231206
tensorboard-data-server 0.7.2
tf-keras-nightly 2.16.0.dev2023120610
tifffile 2023.9.26
timm 0.9.2
tokenizers 0.13.3
tomesd 0.1.3
tomli 2.0.1
toolz 0.12.0
torch 2.1.1+cu121
torchaudio 2.1.1+cu121
torchdiffeq 0.2.3
torchmetrics 1.2.1
torchsde 0.2.5
torchvision 0.16.1
tqdm 4.66.1
trampoline 0.1.2
transformers 4.30.2
typing_extensions 4.8.0
tzdata 2023.3
urllib3 2.1.0
uvicorn 0.24.0.post1
wcwidth 0.2.12
websockets 11.0.3
Werkzeug 3.0.1
xformers 0.0.20
yapf 0.40.2
yarl 1.9.4
zipp 3.17.0

(venv) D:\A1111\stable-diffusion-webui>

What should have happened?

It should have loaded and run better.

Sysinfo

It appears that the attempt to generate a Sysinfo file using the --dump-sysinfo command did not succeed due to the same underlying issue with the httpcore and httpx libraries that you've been encountering. The Sysinfo file in the /modules folder that was last modified a month ago is not the one you need, as it doesn't reflect the current state of your system and the issues you're facing.

Given that the --dump-sysinfo command is not working due to the application not being able to start, you won't be able to generate a fresh Sysinfo file this way. Unfortunately, without the application running at least partially, it can't gather and dump the system information.

What browsers do you use to access the UI ?

No response

Console logs

venv "D:\A1111\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.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Traceback (most recent call last):
  File "D:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 231, in run_extension_installer
    stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env).strip()
  File "D:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Error running install.py for extension D:\A1111\stable-diffusion-webui\extensions\canvas-zoom.
Command: "D:\A1111\stable-diffusion-webui\venv\Scripts\python.exe" "D:\A1111\stable-diffusion-webui\extensions\canvas-zoom\install.py"
Error code: 1
stderr: Traceback (most recent call last):
  File "D:\A1111\stable-diffusion-webui\extensions\canvas-zoom\install.py", line 4, in <module>
    import gradio
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>
    from gradio import utils
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in <module>
    class AsyncRequest:
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_transports\default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\A1111\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "D:\A1111\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "D:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 400, in prepare_environment
    run_extensions_installers(settings_file=args.ui_settings_file)
  File "D:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 268, in run_extensions_installers
    run_extension_installer(path)
  File "D:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 235, in run_extension_installer
    errors.report(str(e))
  File "D:\A1111\stable-diffusion-webui\modules\errors.py", line 29, in report
    record_exception()
  File "D:\A1111\stable-diffusion-webui\modules\errors.py", line 17, in record_exception
    from modules import sysinfo
  File "D:\A1111\stable-diffusion-webui\modules\sysinfo.py", line 13, in <module>
    from modules import paths_internal, timer, shared, extensions, errors
  File "D:\A1111\stable-diffusion-webui\modules\shared.py", line 3, in <module>
    import gradio as gr
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>
    from gradio import utils
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in <module>
    class AsyncRequest:
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "D:\A1111\stable-diffusion-webui\venv\lib\site-packages\httpx\_transports\default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'
Press any key to continue . . .

Additional information

No response

@Nisnaica Nisnaica added the bug-report Report of a bug, yet to be confirmed label Dec 9, 2023
@w-e-w
Copy link
Collaborator

w-e-w commented Dec 10, 2023

read the pinned issue
#13840
you are using 1.6.0 not 1.6.1

@w-e-w w-e-w closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants