instanll summarizer-agent-exampleError, package conflict, depends on 0.6.0. After installing this example, 0.6.3 will be uninstalled, causing dbgpt_server.py to keep refreshing the screen and reporting errors. After uninstalling the example, it returns to normal. #2300
Labels
Search before asking
Operating system information
Linux
Python version information
3.10
DB-GPT version
main
Related scenes
Installation Information
Installation From Source
Docker Installation
Docker Compose Installation
Cluster Installation
AutoDL Image
Other
Device information
CPU
Models information
qwen2.5
What happened
instanll summarizer-agent-example报错,包冲突,依赖的是0.6.0,安装该例子后会卸载0.6.3导致dbgpt_server.py不停刷屏报错,卸载例子后恢复正常
dbpgt install uninstall、pip install -e ".[default]"相关日志:
Requirement already satisfied: types-python-dateutil>=2.8.10 in /opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.11.0->jupyter-server>=2.13.0->libro-server>=0.1.10->libro>=0.1.25->dbgpt==0.6.3) (2.9.0.20241206)
Installing collected packages: dbgpt
Attempting uninstall: dbgpt
Found existing installation: dbgpt 0.6.3
Uninstalling dbgpt-0.6.3:
Successfully uninstalled dbgpt-0.6.3
DEPRECATION: Legacy editable install of dbgpt[default]==0.6.3 from file:///opt/DB-GPT/DB-GPT (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457
Running setup.py develop for dbgpt
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
summarizer-agent-example 0.1.2 requires dbgpt[agent]<0.6.0,>=0.5.6rc1, but you have dbgpt 0.6.3 which is incompatible.
Successfully installed dbgpt
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
dbgpt app list日志
2025-01-13 14:02:35 | root | WARNING | Integrating dbgpt webserver command line tool failed: No module named 'dbgpt.app'
2025-01-13 14:02:35 | root | WARNING | Integrating dbgpt knowledge command line tool failed: No module named 'dbgpt.app'
2025-01-13 14:02:35 | root | WARNING | Integrating dbgpt serve command line tool failed: No module named 'dbgpt.serve'
Installing collected packages: dbgpt, summarizer-agent-example
Attempting uninstall: dbgpt
Found existing installation: dbgpt 0.6.3
Uninstalling dbgpt-0.6.3:
Successfully uninstalled dbgpt-0.6.3
Successfully installed dbgpt-0.5.10 summarizer-agent-example-0.1.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv.
dbgpt_server.py日志
--- Logging error ---
Traceback (most recent call last):
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 449, in load_package
self._register_packages(package)
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 488, in _register_packages
agent_manager.register_agent(agent_cls, ignore_duplicate=True)
File "/opt/DB-GPT/DB-GPT/dbgpt/agent/core/agent_manage.py", line 91, in register_agent
inst = cls()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/summarizer_agent_example/init.py", line 64, in init
self._init_actions([SummaryAction])
File "/opt/DB-GPT/DB-GPT/dbgpt/agent/core/base_agent.py", line 696, in _init_actions
self.actions.append(action(language=self.language))
TypeError: SummaryAction.init() got an unexpected keyword argument 'language'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 1100, in emit
msg = self.format(record)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 943, in format
return fmt.format(record)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 678, in format
record.message = record.getMessage()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 368, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/opt/DB-GPT/DB-GPT/dbgpt/app/initialization/scheduler.py", line 46, in _scheduler
schedule.run_pending()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 854, in run_pending
default_scheduler.run_pending()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 101, in run_pending
self._run_job(job)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 173, in _run_job
ret = job.run()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 691, in run
ret = self.job_func()
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 451, in load_package
logger.warning(f"Load dbgpts package error: {e}", e)
Message: "Load dbgpts package error: SummaryAction.init() got an unexpected keyword argument 'language'"
Arguments: (TypeError("SummaryAction.init() got an unexpected keyword argument 'language'"),)
--- Logging error ---
Traceback (most recent call last):
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 449, in load_package
self._register_packages(package)
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 488, in _register_packages
agent_manager.register_agent(agent_cls, ignore_duplicate=True)
File "/opt/DB-GPT/DB-GPT/dbgpt/agent/core/agent_manage.py", line 91, in register_agent
inst = cls()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/summarizer_agent_example/init.py", line 64, in init
self._init_actions([SummaryAction])
File "/opt/DB-GPT/DB-GPT/dbgpt/agent/core/base_agent.py", line 696, in _init_actions
self.actions.append(action(language=self.language))
TypeError: SummaryAction.init() got an unexpected keyword argument 'language'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 1100, in emit
msg = self.format(record)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 943, in format
return fmt.format(record)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/coloredlogs/init.py", line 1140, in format
return logging.Formatter.format(self, record)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 678, in format
record.message = record.getMessage()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/logging/init.py", line 368, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/opt/DB-GPT/DB-GPT/dbgpt/app/initialization/scheduler.py", line 46, in _scheduler
schedule.run_pending()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 854, in run_pending
default_scheduler.run_pending()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 101, in run_pending
self._run_job(job)
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 173, in _run_job
ret = job.run()
File "/opt/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/schedule/init.py", line 691, in run
ret = self.job_func()
File "/opt/DB-GPT/DB-GPT/dbgpt/util/dbgpts/loader.py", line 451, in load_package
logger.warning(f"Load dbgpts package error: {e}", e)
Message: "Load dbgpts package error: SummaryAction.init() got an unexpected keyword argument 'language'"
Arguments: (TypeError("SummaryAction.init() got an unexpected keyword argument 'language'"),)
What you expected to happen
帮忙修复此问题,是不是summarizer-agent-example调整依赖为dbgpt0.6.3即可?
How to reproduce
dbgpt app install summarizer-agent-example
Additional context
帮忙修复此问题,是不是summarizer-agent-example调整依赖为dbgpt0.6.3即可?
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: