部署问题ImportError: cannot import name 'AutoRegister' from 'class_registry' (/root/.conda/envs/agent_camp3/lib/python3.10/site-packages/class_registry/__init__.py)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the import through examples/internlm2_agent_web_demo.py and trace it to lagent/actions/base_action.py, where AutoRegister and ClassRegistry are imported. Inspect the installed class_registry package and the project's dependency declarations; done means the demo starts without this ImportError in the reported deployment environment.
Written by the indexing model from the issue text.
Description
ImportError: cannot import name 'AutoRegister' from 'class_registry' (/root/.conda/envs/agent_camp3/lib/python3.10/site-packages/class_registry/init.py)
Traceback:
File "/root/.conda/envs/agent_camp3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "/root/.conda/envs/agent_camp3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "/root/agent_camp3/lagent/examples/internlm2_agent_web_demo.py", line 8, in
from lagent.actions import ActionExecutor, ArxivSearch, IPythonInterpreter
File "/root/agent_camp3/lagent/lagent/init.py", line 2, in
from .actions import * # noqa: F401, F403
File "/root/agent_camp3/lagent/lagent/actions/init.py", line 3, in
from .action_executor import ActionExecutor
File "/root/agent_camp3/lagent/lagent/actions/action_executor.py", line 4, in
from .base_action import BaseAction
File "/root/agent_camp3/lagent/lagent/actions/base_action.py", line 14, in
from class_registry import AutoRegister, ClassRegistry
- Dominant language
- Python
- Stars
- 2k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from InternLM/Tutorial
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
使用100%A100运行报错Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
testOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in InternLM/Tutorial
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
future-agi/future-agi#5908 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
eclipse-score/coverage_tool#101 ·
Maintainers usually reply within 2 days
-
Placeholder export disables HTML image input for picture descriptionPossibly taken @cloudiful claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docling-project/docling-serve#817 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Techiebutler/freeframe#687 ·
Maintainers usually reply within 1 day
-
Parse truncated verbose GC logs up to the first XML errorPossibly taken A pull request linked to this issue is open or already merged. Openbug verbose GC
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IBM/javacore-analyser#677 ·
Maintainers usually reply within 1 day