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

'build.sh build' completed successfully without errors, unable to run #100

Open
Jugrnot opened this issue May 24, 2024 · 4 comments
Open

Comments

@Jugrnot
Copy link

Jugrnot commented May 24, 2024

As stated in title, was able to successfully run './build.sh build' without errors, however I'm unable to run even just ./build.sh successfully now, attempting to run with 'git bash' on Win10; output is the following:

image

Spent a fair amount of time attempting to figure out how to get my python path associated with /usr/bin/env, but despite my hour long google search, I'm not able to figure it out. Also attempted to create a .bashrc and add "export PATH=/c/Users/elesj/AppData/Local/Programs/Python/Python38-32/python:$PATH"

The strange part is, a simple test python script I can run from bash:

image

Windows 10 22H2
Docker Desktop 4.30.0
python 3.8.1
git 2.38.0

image
image

@fboulnois
Copy link
Owner

My guess is your docker-entrypoint.py is using CRLF Windows line endings \r\n, instead of LF Unix line endings \n , which is causing the script to fail to run. If you have the file command installed you can check this by running file docker-entrypoint.py. The solution is to switch back to Unix file endings.

@Jugrnot
Copy link
Author

Jugrnot commented May 28, 2024

My guess is your docker-entrypoint.py is using CRLF Windows line endings \r\n, instead of LF Unix line endings \n , which is causing the script to fail to run. If you have the file command installed you can check this by running file docker-entrypoint.py. The solution is to switch back to Unix file endings.

So I ran: vim docker-entrypoint.py -c "set ff=unix" -c ":wq"
Then attempted to run: ./build.sh run 'Andromeda galaxy in a bottle'
Which resulted in sitting at a blinking cursor for 2 hours doing nothing before my PC went to sleep. Zero GPU or CPU usage noted. I had to reboot for another issue, and now we're back to square one:

image

@fboulnois
Copy link
Owner

It's not clear if you ran the ./build.sh build command beforehand again to rebuild the Docker container. If you did do so and are still experiencing issues, I don't have any other specific recommendations. Local installations of Python do not interact with the Docker container at all, so that is unlikely to be the cause of the issue.

@Jugrnot
Copy link
Author

Jugrnot commented May 28, 2024

It's not clear if you ran the ./build.sh build command beforehand again to rebuild the Docker container. If you did do so and are still experiencing issues, I don't have any other specific recommendations. Local installations of Python do not interact with the Docker container at all, so that is unlikely to be the cause of the issue.

I have no legitimate reason as to why, but I in fact did re-run the build command. Any suggestion on maybe wiping the entire thing including the docker container out and starting from scratch given the development of needing unix line endings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants