cloudera / community-ml-runtimes

Apache License 2.0
16 stars 21 forks source link

bad interpreter: no such file or directory #2

Open Fabbiologia opened 2 years ago

Fabbiologia commented 2 years ago

I am trying to create a custom runtime in CML. I followed your tutorial here: https://community.cloudera.com/t5/Community-Articles/Using-RStudio-as-an-Editor-with-ML-Runtimes/ta-p/325166

I just changed the label and I needed to add a line to fix a time error in the ubuntu update procedure. After that, it runs OK.

But when I am testing it on CML I have an error:

image

maxhardt commented 1 year ago

@Fabbiologia still seeing the same error? The latest Docker image should work without any changes to the Dockerfile.

carlsonp commented 1 year ago

Also make sure you're not running into issues with line ending differences between CRLF vs. LF. For BASH scripts and such, make sure they're LF.

carlsonp commented 2 months ago

You can also use dos2unix to help convert to appropriate Linux line endings for executable scripts. This helps when developing on Windows but compiling towards Linux Docker images for example.