AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

execute_python_file no such file or directory

Open denen99 opened this issue 2 years ago • 5 comments

Duplicates

  • [X] I have searched the existing issues

Steps to reproduce 🕹

Set a goal that ends up writing a python file to take some action

wait for auto-gpt to try that action

Current behavior 😯

Getting the error

Executing file 'data_analysis.py' in workspace 'auto_gpt_workspace' SYSTEM: Command execute_python_file returned: Error: File 'data_analysis.py' does not exist.

Expected behavior 🤔

The python script executes

Your prompt 📝

# Create a list of every museum in the UK

denen99 avatar Apr 14 '23 17:04 denen99

does a file by that name exist in auto_gpt_workspace subfolder?

richbeales avatar Apr 14 '23 19:04 richbeales

It does not, which was what confuses me. And yes it's writeable, bc it has written other files in there for other Goals, I triple checked that

denen99 avatar Apr 14 '23 21:04 denen99

+1 Does need to create a Python file in hand by autogpt's ACTION?

Jun10ng avatar Apr 15 '23 14:04 Jun10ng

getting the same issue.

CalyxNZ avatar Apr 16 '23 10:04 CalyxNZ

Any solution for this, I also see the autogpt workspace folder is empty and error SYSTEM: Command execute_python_file returned: Error: File expected-python-file.py missing

hatgit avatar Apr 21 '23 15:04 hatgit

Fixed

ntindle avatar Apr 23 '23 04:04 ntindle