Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
5

no such file:main.py

Savez
Savez

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

1 year ago

Voters

Comments

TopNew
1
MrVoo
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

1 year ago
1
Savez
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?

1 year ago
1
Savez
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.

1 year ago
1
MrVoo
MrVoo

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

1 year ago
1
Savez
Savez

@MrVoo
Any advice on how to fix it?

1 year ago
Load more