Please help with; No such file: main.py repl process died unexpectedly: exit status 2

Question:
So essentially when I try to run my code it gives this output in the console on the title of the question.

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

Here is my code;

# ๐Ÿšจ Don't change the code below ๐Ÿ‘‡
print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
# ๐Ÿšจ Don't change the code above ๐Ÿ‘†

#Write your code below this line ๐Ÿ‘‡

l_name1 = name1.lower()
l_name2 = name2.lower()
l_name = l_name1 and l_name2
count_true = int(l_name.count("t") + l_name.count("r") + l_name.count("u") + l_name.count("e")
countr_true2 = int((l_name.count("l") + l_name.count("o") + l_name.count("v") + l_name.count("e")
                  

                 
if count_true >= 1:
  print(f"The number is {count_true}")

Hey @aidan3010!

Just click the โ‹ฎ next to โ€œFilesโ€ then click โ€œShow hidden filesโ€. Next click on the .replit file and finally you can change the entrypoint to whatever file you want to run.

You can also change the second line from run="python main.py to run="python fileIWantToRun.py", though it wonโ€™t have an effect for languages with interpreters as shown in the comment on line 1.

Images

Dots

Show hidden files

edited

Also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl

6 Likes

Thank you so much! This worked!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.