Closed mabin2016 closed 1 month ago
Thank you for filing this issue, Looks like the Jupyter process was terminated(MG Interpreter use Jupyter as python Executor), But the log seems not complete, I can't analyze the specific reasons. The code was terminated for many reasons, such as, killed by the computer system due to computer system resource issues
@garylin2099 Can you look at this question together? I suspect it is caused by too fast execution (without proper waiting). There are multiple issues with this problem in gpt-3.5-turbo.
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
Version: v0.7-release System: windows10 config2.yaml
desc: When I run the example of .\examples\mi\data_visualization.py, itoccur error like '[IPKernelApp] WARNING | Parent appears to have exited, shutting down.'. The full error is
2024-02-20 11:13:48.631 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.000 | Max budget: $10.000 | Current cost: $0.000, prompt_tokens: 234, completion_tokens: 107 2024-02-20 11:13:48.635 | WARNING | metagpt.strategy.planner:update_plan:63 - The generated plan is not valid with error: Expecting property name enclosed in double quotes: line 6 column 5 (char 132), try regenerating, remember to generate either the whole plan or the single changed task only
2024-02-20 11:13:52.173 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 388, completion_tokens: 107 2024-02-20 11:13:52.176 | INFO | metagpt.roles.role:_plan_and_act:494 - ready to take on task task_id='1' dependent_task_ids=[] instruction='Load the Iris dataset using sklearn' task_type='' code='' result='' is_success=False is_finished=False 2024-02-20 11:13:52.179 | INFO | metagpt.roles.mi.interpreter:_write_code:79 - ready to WriteCodeWithoutTools 2024-02-20 11:13:54.853 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 504, completion_tokens: 23 1 from sklearn.datasets import load_iris D:\software\anaconda3\envs\test\lib\site-packages\zmq_future.py:693: RuntimeWarning: Proactor event loop does not implement add_reader family of methods required for zmq. Registering an additional selector thread for add_reader support via tornado. Use
asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())
to avoid this warning. self._get_loop()2024-02-20 11:13:58.485 | INFO | metagpt.roles.role:_plan_and_act:494 - ready to take on task task_id='2' dependent_task_ids=['1'] instruction='Perform data analysis on the loaded Iris dataset' task_type='' code='' result='' is_success=False is_finished=False 2024-02-20 11:13:58.488 | INFO | metagpt.roles.mi.interpreter:_write_code:79 - ready to WriteCodeWithoutTools 2024-02-20 11:14:01.928 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 515, completion_tokens: 28 1 from sklearn.datasets import load_iris 2 import pandas as pd
2024-02-20 11:14:02.453 | INFO | metagpt.roles.role:_plan_and_act:494 - ready to take on task task_id='3' dependent_task_ids=['2'] instruction='Create a plot to visualize the analysis results' task_type='' code='' result='' is_success=False is_finished=False 2024-02-20 11:14:02.458 | INFO | metagpt.roles.mi.interpreter:_write_code:79 - ready to WriteCodeWithoutTools 2024-02-20 11:14:05.121 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 528, completion_tokens: 28 1 from sklearn.datasets import load_iris 2 import pandas as pd
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.