Python tkinter error

I am trying to create a game, but upon testing my login page, i get an error that tkinter cant connect to a display. I can not find any infomation to help me with this.

I have also attached a link to the code: https://replit.com/@busby08/Legends-of-mathmatica-GUI?v=1

Any help would be greatly appreciated

This type of error seems to be happening to multiple people who are trying to use different methods of any type of display, so I think it’s something on the server-side, rather than something we may be able to fix.