IDE says FileNotFoundError. but the code run ok two days ago.
my system is win7 ,is there any method for win7?
and the IDE menu has no example about files read and write.
where can i find the example of files read and write?
Generic Python commands for opening and reading files work. There’s no need for examples as this is extensively documented on the internet.
As for your error, I don’t have enough details to know.
roge that
FYI aside from the obvious, like the file you’re looking for not existing where you’re looking for it, I have come across a misleading “file not found” exception when I was trying to open the wrong port at one point. Took me a second to realize the actual error:
serial.serialutil.SerialException: could not open port '2': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)