sunnyark / civitai-shortcut

140 stars 13 forks source link

"ValueError: Progress tracking requires queuing to be enabled" after installing. #38

Open ManOrMonster opened 1 year ago

ManOrMonster commented 1 year ago

I get "ValueError: Progress tracking requires queuing to be enabled" after installing. I use --no-gradio-queue option when launching a1111 because I have issues otherwise.

C:\stable-diffusion\automatic1111\launch.py:38 in <module>                                       │
│                                                                                                  │
│   35                                                                                             │
│   36                                                                                             │
│   37 if __name__ == "__main__":                                                                  │
│ ❱ 38 │   main()                                                                                  │
│   39                                                                                             │
│                                                                                                  │
│ C:\stable-diffusion\automatic1111\launch.py:34 in main                                           │
│                                                                                                  │
│   31 │   if args.test_server:                                                                    │
│   32 │   │   configure_for_tests()                                                               │
│   33 │                                                                                           │
│ ❱ 34 │   start()                                                                                 │
│   35                                                                                             │
│   36                                                                                             │
│   37 if __name__ == "__main__":                                                                  │
│                                                                                                  │
│ C:\stable-diffusion\automatic1111\modules\launch_utils.py:344 in start                           │
│                                                                                                  │
│   341 │   if '--nowebui' in sys.argv:                                                            │
│   342 │   │   webui.api_only()                                                                   │
│   343 │   else:                                                                                  │
│ ❱ 344 │   │   webui.webui()                                                                      │
│   345                                                                                            │
│                                                                                                  │
│ C:\stable-diffusion\automatic1111\webui.py:390 in webui                                          │
│                                                                                                  │
│   387 │   │                                                                                      │
│   388 │   │   gradio_auth_creds = list(get_gradio_auth_creds()) or None                          │
│   389 │   │                                                                                      │
│ ❱ 390 │   │   app, local_url, share_url = shared.demo.launch(                                    │
│   391 │   │   │   share=cmd_opts.share,                                                          │
│   392 │   │   │   server_name=server_name,                                                       │
│   393 │   │   │   server_port=cmd_opts.port,                                                     │
│                                                                                                  │
│ C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py:1729 in launch         │
│                                                                                                  │
│   1726 │   │   if not isinstance(self.blocked_paths, list):                                      │
│   1727 │   │   │   raise ValueError("`blocked_paths` must be a list of directories.")            │
│   1728 │   │                                                                                     │
│ ❱ 1729 │   │   self.validate_queue_settings()                                                    │
│   1730 │   │                                                                                     │
│   1731 │   │   self.config = self.get_config_file()                                              │
│   1732 │   │   self.max_threads = max(                                                           │
│                                                                                                  │
│ C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py:1563 in                │
│ validate_queue_settings                                                                          │
│                                                                                                  │
│   1560 │                                                                                         │
│   1561 │   def validate_queue_settings(self):                                                    │
│   1562 │   │   if not self.enable_queue and self.progress_tracking:                              │
│ ❱ 1563 │   │   │   raise ValueError("Progress tracking requires queuing to be enabled.")         │
│   1564 │   │                                                                                     │
│   1565 │   │   for fn_index, dep in enumerate(self.dependencies):                                │
│   1566 │   │   │   if not self.enable_queue and self.queue_enabled_for_fn(fn_index):             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Progress tracking requires queuing to be enabled.
sunnyark commented 1 year ago

@ManOrMonster You need to use the gradio queue for it to function properly. To ensure smooth progress with gradio's event trigger and due to some limitations with the cancels option, using a queue is necessary for it to work correctly.

ghost commented 1 year ago

Also using --no-gradio-queue when launching webui.py, results in the error about Progress queue. This only happens when this extension is installed, works okay with other extensions. Something about needing to call .queue() on the Blocks object see - https://github.com/v8hid/infinite-zoom-automatic1111-webui/issues/32

hakaserver commented 1 year ago

Having gradio queue enabled seems to make some a1111 setups sluggish and may cause some bugs with extensions like the Lobe theme. Which is why I have seem some users recommend the inclusion of the --no-gradio-queue flag to fix some of these situations.