Home > OS >  Files actually exists, yet Python shows "no such file or directory" despite using absolute
Files actually exists, yet Python shows "no such file or directory" despite using absolute

Time:07-24

As can be seen in the following snippets, I have been trying to open a file in Python, the file actually exists, and I am using absolute (not relative) path in the code. Yet, as can be seen this stragne error message (no such file or directory) keeps poping up annoyingly.

Any ideas?

Files actually exist

Yet a strange error message keeps poping up

CodePudding user response:

Typo:

the file you are trying to open is E.srt but the path in the error message says E.str

CodePudding user response:

You typed E.str when you meant E.srt.

  • Related