-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Question
运行scripts/eval/navigation_ui.py提示错误 (服务器没有GUI)
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/applications.py", line 1133, in call
await super().call(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio/route_utils.py", line 761, in call
await self.app(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 63, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/routing.py", line 736, in app
await route.handle(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/routing.py", line 290, in handle
await self.app(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/routing.py", line 123, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/routing.py", line 109, in app
response = await f(request)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/routing.py", line 389, in app
raw_response = await run_endpoint_function(
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/fastapi/routing.py", line 290, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/starlette/concurrency.py", line 38, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2485, in run_sync_in_worker_thread
return await future
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/anyio/_backends/asyncio.py", line 976, in run
result = context.run(func, *args)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio/routes.py", line 431, in main
gradio_api_info = api_info(False)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio/routes.py", line 460, in api_info
app.api_info = app.get_blocks().get_api_info()
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio/blocks.py", line 2852, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 893, in json_schema_to_python_type
type = _json_schema_to_python_type(schema, schema.get("$defs"))
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type
des = [
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 901, in json_schema_to_python_type
type = get_type(schema)
File "/data23/qq/miniforge3/envs/habitat/lib/python3.9/site-packages/gradio_client/utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable