notebooks-ai / notebooks-help

Issues with Notebooks.ai? Create an issue here!
https://notebooks.ai
MIT License
14 stars 5 forks source link

Executables scripts cannot be run directly in the Docker image #10

Closed dclong closed 5 years ago

dclong commented 5 years ago

For example, Shell/Python scripts cannot be run even I make them runnable by chmod +x.

martinzugnoni commented 5 years ago

Try executing the script by calling the interpreter manually, like this:

$ python hello.py

instead of this:

$ ./hello.py

Same applies for Shell/Bash scripts, of course changing the interpreter:

$ bash hello.sh
dclong commented 5 years ago

I do know that we can run scripts in this way, but it's rather inconvenient. Also, I have some dependencies that execute scripts using the Shebang way. It's a nightmare to fix all of these.

santiagobasulto commented 5 years ago

What would be another way of running them @dclong ?

dclong commented 5 years ago

@santiagobasulto Sorry for the confusion. By "the Shebang way" I mean have #!/bin/bash etc. in the first line of a file, make the file executable and run it using ./hello.sh. It's the exactly the first way we talked about above. I have some dependencies that have the hard coded way of ./hello.sh running scripts. I cannot fix all of them.

Why don't we support running scripts using the shebang way?

santiagobasulto commented 5 years ago

We hadn't realized that it wasn't possible to do ./hello.sh before 😱 . Thanks for the report, we'll fix it.

dclong commented 5 years ago

Any update?

dclong commented 5 years ago

Seems that this issue has been fixed.