Skip to content
Sign upLog in
← Back to Community

no such file:main.py

Profile icon
Savez

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

Voters
Profile icon
JOSE-ALEJAND105
Profile icon
JakubDobrzycki
Profile icon
kjh8846
Profile icon
Savez
Comments
hotnewtop
Profile icon
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

Profile icon
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?

Profile icon
MrVoo

@Savez
Yessir

Profile icon
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.

Profile icon
MrVoo

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

Profile icon
Savez

@MrVoo
Any advice on how to fix it?

Profile icon
SixBeeps