You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi , I just installed MetaGpt on ubuntu20, and config LLM through modified ./config/congfig2.yaml;
then executed example , logs info below :
pydantic_core._pydantic_core.ValidationError: 1 validation error for Config
llm.api_key
Value error, Please set your API key in /home/*****/.metagpt/config2.yaml. If you also set your config in /data2/11_metadata/MetaGPT/config/config2.yaml,
the former will overwrite the latter. This may cause unexpected result.
[type=value_error, input_value='YOUR_API_KEY', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/value_error
so ,I Erased /home/*/.metagpt/config2.yaml ,executed agant, Error info like below: Feature description $ python examples/di/data_visualization.py
2024-11-08 11:28:52.046 | INFO | metagpt.const:get_metagpt_package_root:21 - Package root set to /data2/11_metadata/MetaGPT
Traceback (most recent call last):
File "/data2/11_metadata/MetaGPT/examples/di/data_visualization.py", line 4, in
from metagpt.roles.di.data_interpreter import DataInterpreter
File "/data2/11_metadata/MetaGPT/metagpt/roles/init.py", line 9, in
from metagpt.roles.role import Role
File "/data2/11_metadata/MetaGPT/metagpt/roles/role.py", line 30, in
from metagpt.actions import Action, ActionOutput
File "/data2/11_metadata/MetaGPT/metagpt/actions/init.py", line 10, in
from metagpt.actions.action import Action
File "/data2/11_metadata/MetaGPT/metagpt/actions/action.py", line 15, in
from metagpt.actions.action_node import ActionNode
File "/data2/11_metadata/MetaGPT/metagpt/actions/action_node.py", line 22, in
from metagpt.llm import BaseLLM
File "/data2/11_metadata/MetaGPT/metagpt/llm.py", line 11, in
from metagpt.context import Context
File "/data2/11_metadata/MetaGPT/metagpt/context.py", line 14, in
from metagpt.config2 import Config
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 169, in
config = Config.default()
^^^^^^^^^^^^^^^^
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 110, in default
final = merge_dict(dicts)
^^^^^^^^^^^^^^^^^
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 165, in merge_dict
result.update(dictionary) ### TypeError: 'NoneType' object is not iterable Your Feature
The text was updated successfully, but these errors were encountered:
Hi ,
I just installed MetaGpt on ubuntu20, and config LLM through modified ./config/congfig2.yaml;
then executed example , logs info below :
pydantic_core._pydantic_core.ValidationError: 1 validation error for Config
llm.api_key
Value error, Please set your API key in /home/*****/.metagpt/config2.yaml. If you also set your config in /data2/11_metadata/MetaGPT/config/config2.yaml,
the former will overwrite the latter. This may cause unexpected result.
[type=value_error, input_value='YOUR_API_KEY', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/value_error
so ,I Erased /home/*/.metagpt/config2.yaml ,executed agant, Error info like below:
Feature description
$ python examples/di/data_visualization.py
2024-11-08 11:28:52.046 | INFO | metagpt.const:get_metagpt_package_root:21 - Package root set to /data2/11_metadata/MetaGPT
Traceback (most recent call last):
File "/data2/11_metadata/MetaGPT/examples/di/data_visualization.py", line 4, in
from metagpt.roles.di.data_interpreter import DataInterpreter
File "/data2/11_metadata/MetaGPT/metagpt/roles/init.py", line 9, in
from metagpt.roles.role import Role
File "/data2/11_metadata/MetaGPT/metagpt/roles/role.py", line 30, in
from metagpt.actions import Action, ActionOutput
File "/data2/11_metadata/MetaGPT/metagpt/actions/init.py", line 10, in
from metagpt.actions.action import Action
File "/data2/11_metadata/MetaGPT/metagpt/actions/action.py", line 15, in
from metagpt.actions.action_node import ActionNode
File "/data2/11_metadata/MetaGPT/metagpt/actions/action_node.py", line 22, in
from metagpt.llm import BaseLLM
File "/data2/11_metadata/MetaGPT/metagpt/llm.py", line 11, in
from metagpt.context import Context
File "/data2/11_metadata/MetaGPT/metagpt/context.py", line 14, in
from metagpt.config2 import Config
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 169, in
config = Config.default()
^^^^^^^^^^^^^^^^
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 110, in default
final = merge_dict(dicts)
^^^^^^^^^^^^^^^^^
File "/data2/11_metadata/MetaGPT/metagpt/config2.py", line 165, in merge_dict
result.update(dictionary)
### TypeError: 'NoneType' object is not iterable
Your Feature
The text was updated successfully, but these errors were encountered: