ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

unrecognized arguments: --listen

Open bourneash opened this issue 1 year ago • 4 comments

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.

bourneash avatar Jun 20 '23 23:06 bourneash

that's very strange, do other arguments work?

comfyanonymous avatar Jun 21 '23 00:06 comfyanonymous

The -h arg is the only one I found working so far.

For example, if I pass --cpu I get [snip] Warning: k_diffusion not found at path /home/user/ComfyUI/k-diffusion/k_diffusion/sampling.py usage: main.py [-h] [--data-dir DATA_DIR] [--precision {full,autocast}] [--medvram] [--lowvram] [--lowram] main.py: error: unrecognized arguments: --cpu

In the error, it gives args as well, but if pass them with python ./main.py --medvram

I get this 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] main.py: error: unrecognized arguments: --medvram

Couple other examples:

main.py: error: unrecognized arguments: --dont-upcast-attention

main.py: error: unrecognized arguments: --port 8443

main.py: error: unrecognized arguments: --gpu-only

bourneash avatar Jun 21 '23 00:06 bourneash

I'm getting same error probably after

installation extension

install: ['https://github.com/filipemeneses/comfy_pixelization'] Download: git clone 'https://github.com/filipemeneses/comfy_pixelization' Install: install script Cloning to "/media/evgen/AI/Art/ComfyUI/custom_nodes/comfy_pixelization/pixelization"... remote: Enumerating objects: 223, done. remote: Counting objects: 100% (119/119), done. remote: Compressing objects: 100% (94/94), done. remote: Total 223 (delta 60), reused 55 (delta 23), pack-reused 104 Object acquisition: 100% (223/223), 4.18 MiB | 7.15 MiB/s, done. Change detection: 100% (89/89), done. Note: Switching to "b7142536da3a9348794bce260c10e465b8bebcb8".

You are now in the "disconnected HEAD pointer" state. You can look around make experimental changes and commit them, you can also revert any commits created in this state without affecting others branch by switching back to any branch.

If you want to create a new branch to keep the commits you created, you can do this (now or later) using the switch command with the -c option. For example:

git switch -c

Or cancel this operation with:

git switch-

Disable this tip by setting a config variable advice.detachedHead to false

HEAD is now on b714253 Update README.md Installation was successful.

via [ComfyUI Manager](https://github.com/ltdrdata/ComfyUI-Manager)

not really sure mentioned commit belong to comfy

I tried git reset --hard but this does not helped. Keeping investigation

Blucknote avatar Jul 11 '23 19:07 Blucknote

In my case rm -rf custom_nodes/comfy_pixelization/ helped. Seems like broken custom node

Blucknote avatar Jul 11 '23 19:07 Blucknote

comfy_pixelization should be fixed now. Same issue happens with ComfyUI_tagger, I've opened an issue there: https://github.com/gamert/ComfyUI_tagger/issues/4

One alternative for ComfyUI_tagger is WD14 Tagger

filipemeneses avatar Jul 30 '23 22:07 filipemeneses

@filipemeneses can confirm, its loading and operating, thanks

Blucknote avatar Jul 31 '23 19:07 Blucknote

Same here, I can also confirm after updating comfy_pixelization and removing ComfyUI_tagger it is loading and operating again like normal. Great find, thanks!

bourneash avatar Aug 12 '23 13:08 bourneash