mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Added handling of missing aiohttp module
This commit is contained in:
parent
639d21e5f7
commit
f616dcc81a
13
main.py
13
main.py
@ -7,6 +7,16 @@ import heapq
|
|||||||
import traceback
|
import traceback
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
try:
|
||||||
|
import aiohttp
|
||||||
|
from aiohttp import web
|
||||||
|
except ImportError:
|
||||||
|
print("Module 'aiohttp' not installed. Please install it via:")
|
||||||
|
print("pip install aiohttp")
|
||||||
|
print("or")
|
||||||
|
print("pip install -r requirements.txt")
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if '--help' in sys.argv:
|
if '--help' in sys.argv:
|
||||||
print("Valid Command line Arguments:")
|
print("Valid Command line Arguments:")
|
||||||
@ -346,9 +356,6 @@ class PromptQueue:
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
import aiohttp
|
|
||||||
from aiohttp import web
|
|
||||||
|
|
||||||
def get_queue_info(prompt_queue):
|
def get_queue_info(prompt_queue):
|
||||||
prompt_info = {}
|
prompt_info = {}
|
||||||
exec_info = {}
|
exec_info = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user