Thespica opened a new issue, #204: URL: https://github.com/apache/incubator-hugegraph-ai/issues/204
### Problem Type (问题类型) None ### Before submit - [x] I had searched in the [issues](https://github.com/apache/incubator-hugegraph-ai/issues) and found no similar issues. ### Environment (环境信息) - Server Version: 1.5.0 - Toolchain Version: NaN - Data Size: NaN <!-- (like 1000W 点,9000W 边) -->> ### Your Question (问题描述) Follow the official guide to run the demo, but failed. Here is the logs: ```bash python3 -m hugegraph_llm.demo.rag_demo.app 2025-03-31 17:01:02 PM - INFO - Loading /home/john/hugegraph/incubator-hugegraph-ai/hugegraph-llm/.env successfully! 2025-03-31 17:01:02 PM - INFO - Loading prompt file 'config_prompt.yaml' successfully. 2025-03-31 17:01:06 PM - INFO - (Status) Authentication is disabled now. INFO: Started server process [49294] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) /home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio/analytics.py:106: UserWarning: IMPORTANT: You are using gradio version 4.43.0, however version 4.44.1 is available, please upgrade. -------- warnings.warn( INFO: 127.0.0.1:55300 - "GET / HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ raise exc File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app raise exc File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ await self.middleware_stack(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 735, in app await route.handle(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 460, in handle await self.app(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ raise exc File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio/route_utils.py", line 760, in __call__ await self.app(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app raise exc File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ await self.middleware_stack(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 735, in app await route.handle(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app raise exc File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/routing.py", line 73, in app response = await f(request) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app raw_response = await run_endpoint_function( File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool return await anyio.to_thread.run_sync(func, *args) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 967, in run result = context.run(func, *args) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio/routes.py", line 427, in main gradio_api_info = api_info(False) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio/routes.py", line 456, in api_info app.api_info = app.get_blocks().get_api_info() File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio/blocks.py", line 2782, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/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 "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 938, in _json_schema_to_python_type elements = _json_schema_to_python_type(items, defs) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 908, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 947, in _json_schema_to_python_type des = [ File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 948, in <listcomp> f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/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 "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 901, in _json_schema_to_python_type type_ = get_type(schema) File "/home/john/anaconda3/envs/hg-ai/lib/python3.10/site-packages/gradio_client/utils.py", line 863, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ``` Then I asked ChatGPT for help, it suggested me to upgrad `gradio`, and it worked.  So I guess that the `gradio` should be upgrade to 4.44.1? ### Vertex/Edge example (问题点 / 边数据举例) ```javascript ``` ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) ```javascript ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org