geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
41.33k stars 4.93k forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'config/config2.yaml' #1344

Open LPSCRYPT opened 2 weeks ago

LPSCRYPT commented 2 weeks ago

Bug description When running a metagpt command, getting the following error, even though I do have a config2.yaml file.

user@computer: /MetaGPT$ metagpt "sing a song about cheese"

2024-06-12 23:48:18.772 | INFO | metagpt.roles.role:_act:402 - Eve(Project Manager): to do WriteTasks(WriteTasks) 2024-06-12 23:48:49.451 | INFO | metagpt.actions.project_management:run:54 - Nothing has changed. 2024-06-12 23:49:36.184 | INFO | metagpt.utils.git_repository:archive:168 - Archive: ['config/config2.yaml'] 2024-06-12 23:49:52.210 | ERROR | metagpt.utils.common:wrapper:631 - Exception occurs, start to serialize the project, exp: Traceback (most recent call last): File "/home/usr/miniconda3/envs/metagpt/lib/python3.9/site-packages/metagpt-0.8.1-py3.9.egg/metagpt/utils/common.py", line 626, in wrapper result = await func(self, *args, **kwargs) File "/home/usr/miniconda3/envs/metagpt/lib/python3.9/site-packages/metagpt-0.8.1-py3.9.egg/metagpt/team.py", line 134, in run self.env.archive(auto_archive) FileNotFoundError: [Errno 2] No such file or directory: 'config/config2.yaml' **Bug solved method** **Environment information** Ubuntu **Screenshots or logs** config2
voidking commented 2 weeks ago

Try this:

mkdir $HOME/.metagpt/
mv config/config2.yaml $HOME/.metagpt/