No such file or directory error

后端 未结 6 1696
有刺的猬
有刺的猬 2021-01-13 13:20

This is the error I am getting:

Traceback (most recent call last):
  File \"E:\\stuff\\module.py\", line 91, in 
    f = open(\'E:/stuff/log.tx         


        
6条回答
  •  长发绾君心
    2021-01-13 14:02

    Look at this line in the "dir" output:

    23. 10. 2010  15:47                 0 log.txt.txt
    

    The file you are looking for is named "log.txt.txt", not "log.txt". I see this happen when people set up the Windows file manager to not show known file extensions and then they try to add or modify an extension. I recommend to others that they turn this behavior off. You can do this under View->Folder Options I believe.

提交回复
热议问题