gpt-engineer
gpt-engineer copied to clipboard
Docker command show error on running
when try to run the gpt-engineer from docker I recieve this error :
docker run -it --rm -e OPENAI_API_KEY=sk-iv9R5S5u0XqSmTdR1JnOT3BlbkFJSxxxxxxxxx -v .:/project gpt-engineer /app/entrypoint.sh: line 3: $'\r': command not found unning gpt-engineer in /project
What application do you want gpt-engineer to generate? ^C <--------- i tstopped the run for error above.
Can't replicate this, maybe this is fixed? Can you try again and check? I'm using Windows 11, Docker Desktop v4.16.2 (95914)
@cor277 does this issue still persist or you don't get that error anymore?
I still get this error attempting to run from windows and wsl2. Also, does anyone know how to do "improve" from docker?
@cor277 @oldmanjk It seems that the entrypoint.sh
file may have a CRLF
end of the file, which could be causing the issue. To resolve this, try changing it to LF
. In CRLF
, every new line is marked by \n\r
, but Unix does not recognize the \r
character. Changing to LF
should fix the problem.
Does @k1lgor s comment resolve this @oldmanjk @cor277 ? Can we close this or do we need changes to the codebase?
Does @k1lgor s comment resolve this @oldmanjk @cor277 ? Can we close this or do we need changes to the codebase?
How do I implement this when I'm running stable? Also, if it works, wouldn't you need to change the codebase?
@oldmanjk are you still experiencing this error? It's been a while since this issue was last active and if it's not relevant anymore, I'd like to close it.
Please, let us know.
@oldmanjk are you still experiencing this error? It's been a while since this issue was last active and if it's not relevant anymore, I'd like to close it.
Please, let us know.
No one ever answered my question and I couldn't figure it out so I moved on. I don't know if it's still an issue. Good luck out there
@zigabrencic will review in conjunction with #1136 and, pending resolution, will close.
Here is the replication of the error mentioned:
Open the entrypoint.sh
file in VSCode and click at the bottom on the editor
and choose
CRLF
at the top. If you build the container now, will be successful, but executing the entrypoints.sh
file inside the container wont be
because the shell does not recognize the
CRLF
ending of the line. This happens if you create files under Windows env.
Hey, @k1lgor! We just made a new release - v0.3.1, and the Docker hotfix you proposed is included.
Can you confirm that it's also solving this issue #933 so we can close it?
Hey @viborc, I believe this can be closed. Just a note for everyone who wants to use the .sh
file inside docker: the file's end of line must be LF
.