Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

No such file or directory

Beray Nil Atabey (7510 points)
13 33 97
in HW4 by (7.5k points)
edited by

Hey,

I'm getting a "No such file or directory" error but I'm positive that my filename exists. Here is my situation. What should I do?

267 views

4 Answers

e
enricomaria.follega (1460 points)
9 18 29
by (1.5k points)
by default python will look in the folder where you are running it.

strangely it doesn't like it.

if you are sure that the filename is correct then try to specify the complete path.
Cigo (5050 points)
3 6 48
by (5.1k points)

Try to specify also the folder, like

test01/A.txt
Chiaraa (2790 points)
4 15 25
by (2.8k points)
I've also had this problem, but after I installed all the requires libraries I managed to solve it
francesco.calzona (5210 points)
5 20 81
by (5.2k points)
Maybe you are not in the corrent directory, and you have to specify test01/A.txt instead of A.txt?