Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 python -m mindsearch.app --lang cn --model_format internlm_silicon --search_engine TencentSearch 报错 #288

Open
CYDL0414 opened this issue Jan 15, 2025 · 0 comments

Comments

@CYDL0414
Copy link

后端报错:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/data/module/miniconda_250115/envs/mindsearch/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 "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in call
raise exc
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in call
await self.app(scope, receive, _send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/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 "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/routing.py", line 715, in call
await self.middleware_stack(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/workspaces/mindsearch/MindSearch/mindsearch/app.py", line 130, in run
agent = init_agent(lang=args.lang, model_format=args.model_format,search_engine=args.search_engine)
File "/workspaces/mindsearch/MindSearch/mindsearch/agent/init.py", line 46, in init_agent
BingBrowser(searcher_type=search_engine,
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/lagent/actions/bing_browser.py", line 413, in init
self.searcher = eval(searcher_type)(
File "", line 1, in
NameError: name 'TencentSearch' is not defined

前端:
raceback (most recent call last):
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/blocks.py", line 2042, in process_api
result = await self.call_function(
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/blocks.py", line 1601, in call_function
prediction = await utils.async_iteration(iterator)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/utils.py", line 728, in async_iteration
return await anext(iterator)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/utils.py", line 722, in anext
return await anyio.to_thread.run_sync(
File "/data/module/miniconda_250115/envs/mindsearch/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 "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 962, in run
result = context.run(func, *args)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/utils.py", line 705, in run_sync_iterator_async
return next(iterator)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/site-packages/gradio/utils.py", line 866, in gen_wrapper
response = next(iterator)
File "/workspaces/mindsearch/MindSearch/frontend/mindsearch_gradio.py", line 78, in predict
for resp in streaming(raw_response):
File "/workspaces/mindsearch/MindSearch/frontend/mindsearch_gradio.py", line 61, in streaming
response = json.loads(decoded)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/module/miniconda_250115/envs/mindsearch/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant