Closed RuiHirano closed 1 year ago
are you on the latest master branch? if not you can try that It worked for me
Same issue with docker in MACos, have you solved the problem?
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
This issue was closed automatically because it has been stale for 10 days with no activity.
⚠️ Search for existing issues first ⚠️
Which Operating System are you using?
Docker
Which version of Auto-GPT are you using?
Latest Release
Do you use OpenAI GPT-3 or GPT-4?
GPT-3.5
Which area covers your issue best?
Commands
Describe your issue.
Thanks for the great library. I am running prompts on stock prices in AutoGPT. In the middle of the task, AutoGPT write code to read a file, but if the path specification is relative, an error occurs and the file cannot be read.
What could be the cause?
auto_gpt_workspace folder
auto_gpt_workspace/data.csv
auto_gpt_workspace/backtest.py
Action
Output
Upload Activity Log Content
NEXT ACTION: COMMAND = execute_python_file ARGUMENTS = {'filename': '/app/autogpt/auto_gpt_workspace/backtest.py'} AUTHORISED COMMANDS LEFT: 7
Upload Error Log Content
Command execute_python_file returned: Error: Traceback (most recent call last): File "/app/autogpt/auto_gpt_workspace/backtest.py", line 5, in data = pd.read_csv('data.csv') File "/usr/local/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv return _read(filepath_or_buffer, kwds) File "/usr/local/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 577, in _read parser = TextFileReader(filepath_or_buffer, **kwds) File "/usr/local/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1407, in init self._engine = self._make_engine(f, self.engine) File "/usr/local/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1661, in _make_engine self.handles = get_handle( File "/usr/local/lib/python3.10/site-packages/pandas/io/common.py", line 859, in get_handle handle = open( FileNotFoundError: [Errno 2] No such file or directory: 'data.csv'