Comfy-Org / Comfy-Org/ComfyUI

unrecognized arguments: --listen

Open
#781 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

Thanks for all the hard work on this great application! I started running in to the following issue on the latest when I launch with either
`python ./main.py --listen 0.0.0.0`
or
`python ./main.py --listen`

it fails to start with this error:
`main.py: error: unrecognized arguments: --listen 0.0.0.0`

--

If I use the -h flag, listen is still showing as an option.
`python ./main.py -h
usage: main.py [-h] [--listen [IP]] [--port PORT] [--enable-cors-header [ORIGIN]] [--extra-model-paths-config PATH [PATH ...]] [--output-directory OUTPUT_DIRECTORY] [--auto-launch] [--cuda-device DEVICE_ID]
[--dont-upcast-attention] [--force-fp32] [--directml [DIRECTML_DEVICE]] [--preview-method [none,auto,latent2rgb,taesd]] [--use-split-cross-attention | --use-pytorch-cross-attention]
[--disable-xformers] [--gpu-only | --highvram | --normalvram | --lowvram | --novram | --cpu] [--dont-print-server] [--quick-test-for-ci] [--windows-standalone-build]

options:
-h, --help show this help message and exit
--listen [IP] Specify the IP address to listen on (default: 127.0.0.1). If --listen is provided without an argument, it defaults to 0.0.0.0. (listens on all)`

--

If I manually edit the `comfy/cli_args.py` the default of --listen to 0.0.0.0 and don't specify the --listen argument it will launch and listen on 0.0.0.0.

parser.add_argument("--listen", type=str, default="127.0.0.1", metavar="IP", nargs="?", const="0.0.0.0", help="Specify the IP address to listen on (default: 127.0.0.1). If --listen is provided without an argument, it>

System is Ubuntu 22.04 (not WSL). Started occurring after updating to the latest master, i was a couple weeks out of date. I tried reverting to a previous commit but ran in to a whole new issue and switched back to master.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.