gpt-engineer
gpt-engineer copied to clipboard
Doesn't quite work right on windows: tries to run .sh file
Do you want to execute this code?
If yes, press enter. Otherwise, type "no"
Executing the code...
run.sh: /mnt/c/Users/jeff/.pyenv/pyenv-win/shims/pip: /bin/sh^M: bad interpreter: No such file or directory
run.sh: line 2: $'\r': command not found
run.sh: line 3: syntax error near unexpected token `<'
'un.sh: line 3: `python main.py <file_path> <column_name> <output_file_path>
I even told it in the prompt: this is running on windows. Do not give me shell commands that windows cannot execute. Yet is still generated run.sh and tried to run it.
Also, all_output.txt is created with a lot of python code, but no .py files were created at all.
+1
Same problem here!
| +-------------------------------------------------------------------------+ | +-----------------------------------------------------------------------------+ AssertionError: Generated entrypoint command that was not bash
If this is the problem you guys are getting then I'm getting it too.
I made a proposal here: https://github.com/AntonOsika/gpt-engineer/pull/123#discussion_r1233150492 @AntonOsika @patillacode
I'm having similar issues on macOS. The file generation seems to be completely broken since one of the recent updates. It creates files like [controller.py]
or [view.py]
which are not actual python files, then it tries to execute and fails.
Many changes have been applied since you posted this, give the latest version a try.
If you wish to reopen the issue please do following the new issue template.