gpt-engineer
gpt-engineer copied to clipboard
IsADirectoryError: [Errno 21] Is a directory
running on MacOS I get this error at the end of the output of the generated code:
Traceback (most recent call last):
File "/Users/admin/Projects/gpt-engineer/main.py", line 51, in <module>
app()
File "/Users/admin/Projects/gpt-engineer/main.py", line 46, in chat
messages = step(ai, dbs)
File "/Users/admin/Projects/gpt-engineer/steps.py", line 55, in run_clarified
to_files(messages[-1]['content'], dbs.workspace)
File "/Users/admin/Projects/gpt-engineer/chat_to_files.py", line 27, in to_files
workspace[file_name] = file_content
File "/Users/admin/Projects/gpt-engineer/db.py", line 17, in __setitem__
with open(self.path / key, 'w') as f:
IsADirectoryError: [Errno 21] Is a directory: '/Users/admin/Projects/gpt-engineer/voice-assistant/workspace'