Skip to content
← Back to Community
unable to run, main file "main.sh" not found
Profile icon
FalconTFG

I assume this is a simple error, how do I fix this?

Voters
Profile icon
NateStinemetz
Profile icon
MaskThe
Profile icon
SharyuRathod
Profile icon
FalconTFG
Comments
hotnewtop
Profile icon
Coder100

it IS a simple problem!

Step 1:
create a main.sh file

Step 2.
put this inside it:

python main.py
Profile icon
GalaxyWolfX

@Coder100 Or you could do what I said. That works, too.

Profile icon
Coder100

no, that won't work
main.sh is not a python file as you should know @GalaxyWolfX

Profile icon
GalaxyWolfX

@Coder100 Did you not see the language?

Profile icon
GalaxyWolfX

@Coder100 With all due respect, I should expect you to take notice of the language, Bash.

Profile icon
Coder100

yes, so that's why you can't just copy and paste python code and treat it as bash lol @GalaxyWolfX

Profile icon
GalaxyWolfX

@Coder100 (FACEPALM) Yes, sorry. I just took notice of the language used therein. I apologise.

Profile icon
Coder100
Profile icon
VelvoTemplates

How to fix this error
IMG_20211111_082052

Profile icon
GalaxyWolfX

@FalconTFG You are simply using a Python file. Copy the code from that file, then paste it into a file named main.sh