Forums

intermittent cant open file during task

Hi, I have been having this error all of the sudden when running a task. I did not have them before. I have changed the code a little but not too much.

I get this error Nov 13 02:29:11 python: can't open file '/home/pelagicdev/main.py': [Errno 2] No such file or directory

Usually it will be at the beginning for a couple of lines of code and then all of the sudden my task runs okay.. then later it will happen again, and usually stop or start again.. i know my file dir pathway is correct.. what is going on?

When I run it in the specific file. It seems to run fine. this just happens when starting a task.

If you happen to save the file from the editor at the point where the task needs to access it, then it's possible that it would be in an intermediate state so the task may not be able to find it.

So, save it from another spot on the code? seems weird

I don't understand what you're saying there. Are you changing the file in your task?