-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'root_relative_path' #1379
Comments
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
<#1379 (comment)>,
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 <project_path> "description of new
feature to be added".
…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
<#1379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFVT5Q5JR6HMN3HPNLRIRTZKY6TXAVCNFSM6AAAAABKHUE23OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGI4TAMJZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Whenever I run metagpt --project-path <my_existing_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
git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e .
The text was updated successfully, but these errors were encountered: