gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Doesn't quite work right on windows: tries to run .sh file

Open YEM-1 opened this issue 1 year ago • 6 comments

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.

YEM-1 avatar Jun 19 '23 02:06 YEM-1

Also, all_output.txt is created with a lot of python code, but no .py files were created at all.

YEM-1 avatar Jun 19 '23 02:06 YEM-1

+1

augusto-rehfeldt avatar Jun 19 '23 03:06 augusto-rehfeldt

Same problem here!

softjuarez avatar Jun 19 '23 03:06 softjuarez

| +-------------------------------------------------------------------------+ | +-----------------------------------------------------------------------------+ AssertionError: Generated entrypoint command that was not bash

If this is the problem you guys are getting then I'm getting it too.

mach7 avatar Jun 19 '23 03:06 mach7

I made a proposal here: https://github.com/AntonOsika/gpt-engineer/pull/123#discussion_r1233150492 @AntonOsika @patillacode

jebarpg avatar Jun 19 '23 06:06 jebarpg

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.

nospoon avatar Jun 19 '23 10:06 nospoon

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.

patillacode avatar Jun 21 '23 13:06 patillacode