Skip to content
← Back to Community
Polygott REPL stuck downloading Pygame
Profile icon
has Hacker Plan

This is a fork of a Polygott demo featuring a Flappy Bird like game based on Pygame, but otherwise I haven't changed it. When I click run, the console gets stuck downloading the Pygame wheel (sometimes the tarball) with a status message like this and a download progress that doesn't go beyond 15-40%:

Downloading (11.3MB)

Why doesn't the download complete and the app run? Is this a or a remote server issue? Any suggestions?

I'm using Chrome OS Stable on a Chromebox.

Answered by Saibot84 [earned 5 cycles]
View Answer
Profile icon
Profile icon

To answer your question, I've noticed that leaving the console waiting on a single program for too long seems to crash the polygott container.
This includes pip install, downloads, etc. This is probably to prevent the container from getting hung (thought I only assume that). To get around this issue, I use nohup command_here in the makefile or nohup command_here & in bash to pipe output to the nohup.out file instead of to the console.

Here's a fork of this FlapehBurd demo that works for me:

And here are the steps I took to make it run:

  • either using makefile or by running bash, run nohup pip download -d ./ pygame You can check nohup.out to see the progress.

  • change pip install pygame to pip install --no-index --find-links=./ pygame

  • instead of using x11vnc, I changed it to use polygott's own polygott-x11-vnc so I commented the killall, Xvfb, and x11vnc commands

I hope that helps.

Profile icon

Thanks for sharing your experience and tips, very useful.

Profile icon