aws-samples / aws-samples/sagemaker-run-notebook

Start.sh - Unix incompatible characters copying from Windows

Open
#41 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
144
Forks
72
PR merge metrics
No merged PRs in 30d

Description

Copying this script from a windows machine may introduce incompatible Unix characters. Unix uses different line endings so it can't read the file if the file was created on Windows. Hence it is seeing ^M as an illegal character. This will cause the script to fail, the logs in Cloudwatch would contain the actual error messages and better insights.

A solution that works is to paste to a text editor such as Notepad++ and on the bottom right, change from Windows (CR LF) to Unix (LF). Then select the whole script and paste it in the Lifecycle configurations text editor. This should solve the problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.