Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Code Running Failures/ Why Cannot the Path of a Text File Generated in Windows OS Be Found In a Notebook Instance?
Updated on 2023-03-09 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