Help Center> ModelArts> FAQs> Notebook (New Version)> Code Execution> Why Cannot the Path of a Text File Generated in Windows OS Be Found In a Notebook Instance?
Updated on 2022-12-06 GMT+08:00

Why Cannot the Path of a Text File Generated in Windows OS Be Found In a Notebook Instance?

Symptom

When a text file generated in Windows is used in a notebook instance, the text content cannot be read and an error message 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 to Linux in your notebook instance.

Shell:

dos2unix  File name

Code Execution FAQs

more