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

ImportError: cannot import name 'AutoRegister' from 'class_registry' (/opt/conda/envs/mindsearch/lib/python3.10/site-packages/class_registry/__init__.py) #202

Closed
codefd opened this issue Sep 10, 2024 · 4 comments

Comments

@codefd
Copy link

codefd commented Sep 10, 2024

/workspaces/mindsearch/MindSearch (b832275) $ python -m mindsearch.app --lang cn --model_format internlm_silicon --search_engine DuckDuckGoSearch
Traceback (most recent call last):
File "/opt/conda/envs/mindsearch/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/envs/mindsearch/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/workspaces/mindsearch/MindSearch/mindsearch/app.py", line 11, in
from lagent.schema import AgentStatusCode
File "/opt/conda/envs/mindsearch/lib/python3.10/site-packages/lagent/init.py", line 2, in
from .actions import * # noqa: F401, F403
File "/opt/conda/envs/mindsearch/lib/python3.10/site-packages/lagent/actions/init.py", line 3, in
from .action_executor import ActionExecutor
File "/opt/conda/envs/mindsearch/lib/python3.10/site-packages/lagent/actions/action_executor.py", line 4, in
from .base_action import BaseAction
File "/opt/conda/envs/mindsearch/lib/python3.10/site-packages/lagent/actions/base_action.py", line 14, in
from class_registry import AutoRegister, ClassRegistry
ImportError: cannot import name 'AutoRegister' from 'class_registry' (/opt/conda/envs/mindsearch/lib/python3.10/site-packages/class_registry/init.py)

@effectzhang
Copy link

我也遇到这个问题了,有解法吗

@Ming-jiayou
Copy link

遇到一样的问题

@daogu
Copy link

daogu commented Sep 12, 2024

from class_registry import AutoRegister, ClassRegistry
报错的AutoRegister 换成下面的
from class_registry.auto_register import AutoRegister

@leon21c
Copy link

leon21c commented Sep 13, 2024

要再安装个依赖 pip install class_registry

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

6 participants