Ask coding questions

← Back to all posts
no such file:main.py
Savez

Can someone help me with this error "no such file: main.py". Thanks

Voters
Savez
Comments
hotnewtop
MrVoo

It means what it says, there no main.py file -_-. It cannot be in a folder, if you REALLY want to keep your files like that, add a main,py file and import the files

Savez

@MrVoo Im new to coding, can you elaborate as in what do you mean by add a main.py file. Do I make a new file called main.py and copy in the code?

MrVoo

@Savez Yessir

Savez

@MrVoo When i create a new file outside of the folder and import the code into the new file the same error still pops up.
Help would be appreciated.

MrVoo

@Savez No, that's a different error. You need to fix indentation on line 36

Savez

@MrVoo Any advice on how to fix it?

SixBeeps