Open krish240574 opened 1 week ago
Is the existing project code you want to improve created by MetaGPT?
Yes, I started the project using metagpt "project specs". Then continued using metagpt --project-path "incremental feature"
Thanks, Kumar
On Fri, 5 Jul 2024 at 06:55, shenchucheng @.***> wrote:
Is the existing project code you want to improve created by MetaGPT?
— Reply to this email directly, view it on GitHub https://github.com/geekan/MetaGPT/issues/1379#issuecomment-2209841434, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFVT5RSUJICYVO2T2GU6KTZKXYYNAVCNFSM6AAAAABKHUE23OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZHA2DCNBTGQ . You are receiving this because you authored the thread.Message ID: @.***>
Could you please upload the generated project code? I can try to reproduce this issue.
I'm afraid I can't, since the code is now company-internal.
I simply followed the steps in the documentation,
metagpt "new project specs" - it generated some code ok.
Then I did metagpt --project path
On Fri, 5 Jul 2024 at 12:18, shenchucheng @.***> wrote:
Could you please upload the generated project code? I can try to reproduce this issue.
— Reply to this email directly, view it on GitHub https://github.com/geekan/MetaGPT/issues/1379#issuecomment-2210290197, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFVT5Q5JR6HMN3HPNLRIRTZKY6TXAVCNFSM6AAAAABKHUE23OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGI4TAMJZG4 . You are receiving this because you authored the thread.Message ID: @.***>
Bug description
Whenever I run metagpt --project-path "some new feature/incremental code" , I get the following error:
2024-07-02 11:54:36.567 | ERROR | metagpt.utils.common:wrapper:631 - Exception occurs, start to serialize the project, exp:
Traceback (most recent call last):
File "/root/DBApp/MetaGPT/metagpt/utils/common.py", line 640, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/DBApp/MetaGPT/metagpt/roles/role.py", line 550, in run
rsp = await self.react()
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'root_relative_path'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/DBApp/MetaGPT/metagpt/utils/common.py", line 626, in wrapper result = await func(self, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/team.py", line 131, in run await self.env.run() Exception: Traceback (most recent call last): File "/root/DBApp/MetaGPT/metagpt/utils/common.py", line 640, in wrapper return await func(self, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/role.py", line 550, in run rsp = await self.react() ^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/role.py", line 519, in react rsp = await self._react() ^^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/role.py", line 474, in _react rsp = await self._act() ^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/engineer.py", line 149, in _act return await self._act_write_code() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/engineer.py", line 156, in _act_write_code changed_files = await self._act_sp_with_cr(review=self.use_code_review) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/DBApp/MetaGPT/metagpt/roles/engineer.py", line 121, in _act_sp_with_cr dependencies.add(coding_context.code_plan_and_change_doc.root_relative_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'root_relative_path'
Bug solved method
Environment information