aws-samples / aws-samples/sagemaker-run-notebook
Start.sh - Unix incompatible characters copying from Windows
Open
- 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
Assessment
This issue has not been assessed yet.