"...resnet50_tensorflow.git" did not exist on "ed38358fbc2a396ae65c2993e5136f9f0f245b50"
Unverified Commit f616dcc8 authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

Added handling of missing aiohttp module

parent 639d21e5
...@@ -7,6 +7,16 @@ import heapq ...@@ -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: ...@@ -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 = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment