Output box refuses to open

Problem description

When I run my code that has easygui inside of it, replit just refuses to open the output box for some reason

Expected behavior

I expect that when I run my code, the output box opens.

Actual behavior

code runs but the output box never opens

Steps to reproduce

I don’t think I can really reproduce this code, it’s purely a chance thing lol.

Browser

Chrome

OS

Windows

Device if mobile

N/A

Plan

free tier

may I see an example of your code so I can see whats wrong

2 Likes

I haven’t finished the actual game itself, but I’ve ran it on Python MSVS and it worked, i think there may be a problem with my account. also, this is a school project and our school uses replit so this is why I’m here. it won’t work on the school PC, and it won’t work on my PC (And laptop) at home. Also, the other kids in my class have been running into this problem as well.

import sys
import easygui, random
easygui.msgbox("Welcome to Rock paper scissors!", "Hello!")


name = easygui.enterbox("What is your name?", "Name")

easygui.msgbox("FYI: You WILL be playing against a computer.", " Welcome " + name)


number = random.randint(0,100)
words = ["Rock", "Paper", "Scissors"]
my_word = random.choice(words)
easygui.msgbox (my_word, "Computer's choice")


easygui.enterbox("What do you choose? Rock, Paper or scissor??", "Selection")


if my_word == "Paper" and number == "Rock":
  easygui.msgbox("You win!")

if my_word == "Scissors" and number == "Paper":
  easygui.msgbox("You win!")

if my_word == "Rock" and number == "Scissors":
  easygui.msgbox("You win!")

if my_word == "Paper" and number == "Paper":
  easygui.msgbox("You win!")

if my_word == "Rock" and number == "Rock":
  easygui.msgbox("You win!")

if my_word == "Scissors" and number == "Scissors":
  easygui.msgbox("You win!")

if my_word == "Scissors" and number == "Rock":
  easygui.msgbox("You lost")





easygui.buttonbox("You have lost :( ", choices = ["Play again?", "HELL NO"])


easygui.buttonbox("You have lost :( ", choices = ["Play again?", "No, ive done my job, \n which was beating the computer!"]) 

if "No, ive done my job, \n which was beating the computer!": 
  sys.exit()
else: "Play again?" 




easygui.msgbox("bye bye")

I don’t see a line that tells the output box to open that could be part of the issue