Open shawhu opened 1 year ago
One more piece of information
I do have a working installation. And by comparing the two, I've found that the dependency httpx has been upgraded from 0.23.3 to 0.24. By deleting the new one and replaced it with httpx-0.23.3 (in my old installation folder), problem fixed. It launched successfully.
same error
httpx.InvalidURL: Invalid port
+1
+1
same error on Ubuntu 22.04LTS I tested both httpx-0.23.3 and httpx-0.24, none of them worked.
I hope this get fixed soon, it's a BLOCKing issue. The installation will fail 100%. It should be put on the priority list...
try to pip install httpx==0.23.0
pip install httpx==0.23.0 didn't work.
however I noticed that if you just igrone the error and run python3 webui.py
, it can launch just as normal.
it seems that this error doesn't matter?
I just change stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_urlparse.py line 339:
port_as_int = int(port)
to
port_as_int = int("1")
it works,but I don't why.
I added a debug print in stable-diffusion-webui\venv\Lib\site-packages\httpx\_urls.py
:
if isinstance(url, str):
print(url)
self._uri_reference = urlparse(url, **kwargs)
It prints such data:
http://127.0.0.1:24554
http://127.0.0.1:24554
http://
https://
all://*localhost
all://*127.0.0.1
all://*::1
Seems that it parsed all proxy-related environment variables. My no_proxy
variable is set no_proxy=localhost, 127.0.0.1, ::1
, maybe it is the problem.
After changed it to set no_proxy=localhost, 127.0.0.1
(remove all ipv6 related ip), problem solved.
Something went wrong with ipv6 parse?
I added a debug print in
stable-diffusion-webui\venv\Lib\site-packages\httpx\_urls.py
:if isinstance(url, str): print(url) self._uri_reference = urlparse(url, **kwargs)
It prints such data:
http://127.0.0.1:24554 http://127.0.0.1:24554 http:// https:// all://*localhost all://*127.0.0.1 all://*::1
Seems that it parsed all proxy-related environment variables. My
no_proxy
variable isset no_proxy=localhost, 127.0.0.1, ::1
, maybe it is the problem.After changed it to
set no_proxy=localhost, 127.0.0.1
(remove all ipv6 related ip), problem solved.Something went wrong with ipv6 parse?
Thanks! It works for me!
I added a debug print in
stable-diffusion-webui\venv\Lib\site-packages\httpx\_urls.py
:if isinstance(url, str): print(url) self._uri_reference = urlparse(url, **kwargs)
It prints such data:
http://127.0.0.1:24554 http://127.0.0.1:24554 http:// https:// all://*localhost all://*127.0.0.1 all://*::1
Seems that it parsed all proxy-related environment variables. My
no_proxy
variable isset no_proxy=localhost, 127.0.0.1, ::1
, maybe it is the problem.After changed it to
set no_proxy=localhost, 127.0.0.1
(remove all ipv6 related ip), problem solved.Something went wrong with ipv6 parse?
I couldn't change no_proxy
in ubuntu.
So I just add if url == "all://*::1": url = "all://*:1"
,and it worked for me. Thanks for your idea!
Is there an existing issue for this?
What happened?
git clone the repo and execute the webui-user.bat and the launch failed.
Problem is, I've successfully installed this many times. With no problem at all.
Steps to reproduce the problem
on windows 10. command prompt
type
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui execute the webui-user.bat and it failed
What should have happened?
it should launch.
Commit where the problem happens
22bcc7be428c94e9408f589966c2040187245d81
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
Nothing, it's a new clone
Console logs
Additional information
No response