On this page
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?

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

Updated on 2024-06-11 GMT+08:00

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
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback