In a .py file this line states "screen = pygame.display.set_mode ( (1, 1) )". It yields an error "error code in python--pygame.error: Unable to open a console terminal". Can someone suggest a solution?
If you are trying in invoke a pygame window remotely over ssh, then make sure you specify the 'display' environment variable inside your code like this:
os.environ["DISPLAY"] = ":0" pygame.display.init()
Note 'display' is not always ':0.0' but most of the time it is. You can find it by opening a local terminal window and typing 'echo $DISPLAY'