Facing error in AI Code

I was working on my AI code after few months but now its showing error “No such file or directory”.

Hi @ayushsawarn166,

Can you please share the code with us so that we can check it and provide assistance?

Hi @ayushsawarn166,

It looks like there’s an issue with the way you are running the script. The error message is indicating that it can’t find the file named “/home/runner/AI-code/ main.py” because there’s an extra space before “main.py.”

Please make sure you are running the script with the correct filename and without any extra spaces. It should be:

/home/runner/AI-code/venv/bin/python3 /home/runner/AI-code/main.py

Ensure that there are no extra spaces in the filename or the path. If you’re running the script from a terminal, you can use the cd command to change your working directory to “/home/runner/AI-code/” before running the script:

cd /home/runner/AI-code/
venv/bin/python3 main.py

This should resolve the “No such file or directory” error you’re encountering. If the issue persists, double-check the file path and name, and ensure that the script exists in the specified location.