-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ERROR | metagpt.utils.common:log_it:554 #1272
Comments
Hi, can you try the main branch or |
@garylin2099 main branch is working fine after yesterday's fix , thanks |
I tried that and it didn't work either. Pretty frustrating. @garylin2099 |
@garylin2099 I get this error message when I try to install. Does this have something to do with my issue? 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. |
now, when I run python startup.py "input here", it does nothing. |
Could you please pull the latest code and try again? @nickbrigham |
Due to the lack of updates or replies by the user for a long time, we will close it. Please reopen it if necessary. |
Bug description
I get the following error message when trying to run metagpt
2024-05-14 14:40:02.842 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 234.119(s), this was the 6th time calling it. exp: openai.types.completion_usage.CompletionUsage() argument after ** must be a mapping, not NoneType
2024-05-14 14:40:02.843 | WARNING | metagpt.utils.common:wrapper:649 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory.
2024-05-14 14:40:02.867 | ERROR | metagpt.utils.common:wrapper:631 - Exception occurs, start to serialize the project, exp:
Traceback (most recent call last):
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/action_node.py", line 420, in _aask_v1
content = await self.llm.aask(prompt, system_msgs, images=images, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: openai.types.completion_usage.CompletionUsage() argument after ** must be a mapping, not NoneType
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/utils/common.py", line 640, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/roles/role.py", line 555, in run
rsp = await self.react()
^^^^^^^^^^^^^^^^^^
tenacity.RetryError: RetryError[<Future at 0x134cd6a10 state=finished raised TypeError>]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/utils/common.py", line 626, in wrapper
result = await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/team.py", line 131, in run
await self.env.run()
Exception: Traceback (most recent call last):
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/action_node.py", line 420, in _aask_v1
content = await self.llm.aask(prompt, system_msgs, images=images, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/provider/base_llm.py", line 150, in aask
rsp = await self.acompletion_text(message, stream=stream, timeout=self.get_timeout(timeout))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/init.py", line 314, in iter
return fut.result()
^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/provider/openai_api.py", line 155, in acompletion_text
return await self._achat_completion_stream(messages, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/provider/openai_api.py", line 105, in _achat_completion_stream
usage = CompletionUsage(**chunk.usage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: openai.types.completion_usage.CompletionUsage() argument after ** must be a mapping, not NoneType
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/utils/common.py", line 640, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/roles/role.py", line 555, in run
rsp = await self.react()
^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/roles/role.py", line 522, in react
rsp = await self._react()
^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/roles/role.py", line 468, in _react
rsp = await self._act()
^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/roles/role.py", line 397, in _act
response = await self.rc.todo.run(self.rc.history)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/write_prd.py", line 87, in run
return await self._handle_new_requirement(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/write_prd.py", line 108, in _handle_new_requirement
node = await WRITE_PRD_NODE.fill(context=context, llm=self.llm, exclude=exclude) # schema=schema
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/action_node.py", line 504, in fill
return await self.simple_fill(schema=schema, mode=mode, images=images, timeout=timeout, exclude=exclude)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt-0.8.1-py3.11.egg/metagpt/actions/action_node.py", line 456, in simple_fill
content, scontent = await self._aask_v1(
^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Nick/anaconda3/envs/metagpt/lib/python3.11/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x134cd6a10 state=finished raised TypeError>]
Don't close this pointing me to #1253. I tried that and it didn't fix the issue, garylin2099.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: