Forums

FileNotFoundError: [Errno 2]

After manually opening a "Bash" terminal on that folder, I have no problems when I type "bash run.sh", but I have problems when I type the following commands from the Task section: "bash /home/WhChess/lichess-bot/run.sh" After writing this, my Always-on task does not work, I get an error like this: Oct 21 21:49:13 Traceback (most recent call last): Oct 21 21:49:13 File "/home/WhChess/lichess-bot/lichess-bot.py", line 50, in <module> Oct 21 21:49:13 with open("./versioning.yml") as version_file: Oct 21 21:49:13 FileNotFoundError: [Errno 2] No such file or directory: './versioning.yml'

But I have a versioning.yml file and as I said, it works without any problems with the first method, but since I had problems with every reset, I wanted to use "Always-on" tasks.

See https://help.pythonanywhere.com/pages/NoSuchFileOrDirectory/

Thank you for your help. It worked.