Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startup.sh script has Windows-style line endings (CRLF) instead of Unix-style line endings (LF) #1403

Open
Muhammad-Adam1 opened this issue Oct 21, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Muhammad-Adam1
Copy link
Contributor

I followed each step of this tutorial Getting started with the Platform

After running the command: docker-compose up

I got an error

Error Encountered

pandabi-backend   | startup.sh: line 2: $'\r': command not found
pandabi-backend   | startup.sh: line 3: $'\r': command not found
pandabi-backend   | startup.sh: line 26: syntax error: unexpected end of file

operating system: Windows 11

How i resolve it

1- open the startup.sh file in VS code.
2- click on the CRLF option displays in the bottom bar of the VS code.
3- after clickng it a pop-up appears, select LF from their.

Copy link

dosubot bot commented Oct 21, 2024

Hello @Muhammad-Adam1! I'm here to help you with bug fixes, answer questions, and guide you toward becoming a contributor. Let's tackle this together!

To resolve the error caused by Windows-style line endings (CRLF) in the startup.sh script when running docker-compose up on Windows 11, you can also convert the line endings to Unix-style (LF) using the dos2unix command. The Dockerfile in the pandas-ai project already contains a commented-out line for this purpose. You should uncomment the line RUN dos2unix /startup.sh to ensure the line endings are converted during the build process [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Oct 21, 2024
@gdcsinaptik gdcsinaptik added duplicate This issue or pull request already exists and removed bug Something isn't working labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants