Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Code Running Failures/ Path of a Text File Generated in the Windows OS Cannot Be Found on a Notebook Instance
Updated on 2025-06-06 GMT+08:00

Path of a Text File Generated in the Windows OS Cannot Be Found on a Notebook Instance

Symptom

When a text file generated in Windows is used on a notebook instance, the text content cannot be read and an error may be displayed indicating that the path cannot be found.

Possible Causes

The notebook instance runs Linux and its line feed format (CRLF) differs from that (LF) in Windows.

Solution

Convert the file format on your notebook instance.

Shell:

dos2unix  File name