I am trying to run pygame in the online IDE Codenvy. I am running Chrome OS on a Chromebook with download restrictions, thus why I am not using IDLE. The IDE has a terminal which I used to install pygame (with pip). I have imported and initiated pygame in my code, so this is not the problem. Whenever I try to draw a window with
window = pygame.display.set_mode((500, 480))
I get the error "pygame.error: No available video device."
I have read elsewhere that this is caused by a problem with SDL, but I don't know how to fix this, especially on a Chromebook. Also note that the issue is not specific to my computer or operating system because I have the same error on a MacBook, but not when running the program in IDLE.
Any help with this would be much appreciated. Thanks.