Ask coding questions

← Back to all posts
Pygame code not running
KerttuOpe

Hi!
I'm having trouble running my pygame programs. Code that has worked before, now does not. This problem has persisted now for about 2 weeks.
Even simplest code won't run (import - - set_mode - - draw - - update - - sleep).
Additional print('something') works everywhere in the code, but nothing is animated.
Sorry for my bad language skills.
Hope someone can help

-Kerttu

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
LokeshJangra
JonathanWDavis
vismaypikachu
KerttuOpe
Comments
hotnewtop
Vandesm14

This is a known bug on repl.it: https://repl.it/bugs/p/pygame-not-working

KerttuOpe

@Vandesm14
Thank you for your reply. Is there any way round it, or do i need to create a new account?
-Kerttu

Vandesm14

@KerttuOpe It can not be fixed as of now. The only thing you can do is wait it out.

KerttuOpe

@Vandesm14 Thanks! Need to be patient, then...

Vandesm14

@KerttuOpe

Please mark my comment as the answer if I resolved your issue 👍

Yeetboi287

Not sure if this works all the time, but I had the same problem and I was able to fix it by changing the name of my project. The repl reloaded and started to work again. Hopefully this works for others.

22jbaird

@Yeetboi287 yeah that worked for me.

jellyhacker

@Yeetboi287 Absolute legend lad. Helped me out so much.

CarterAsh1

There is a way around this issue. When creating a new Repl, do NOT choose python as your language, choose '

pygame'

This worked for me!

JonathanWDavis

I am having a similar problem except it is stuck at ".."

JonathanWDavis

@JonathanWDavis Nevermind I just started a new repl.it, but I have to do it everytime I do a change.

vismaypikachu

Same