[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] root privileges when running pygame



Hi,

I'm attempting to run pygame but it says:
pygame.error: Unable to open a console terminal

The source code is pretty simple:
import pygame
from time import sleep

d=pygame.display.set_mode((500,500))
d.fill((255,255,0))
pygame.display.update()

sleep(5)

...
when I run this I expect to see a yellow window. What I get is a fullscreen with yellow only if I run this sudo or as root.


Why doesn't it just create a window? Or how do I force it?

This is on my linux ppc. Using XP I get a yellow window.

I compiled Python, PyGame, Numeric, SDL, SDL_image, SDL_ttf from scratch with no customisations.

from what I've read SDL doesn't need root priv's to do any of this.

Darrell
--
"Down" is just "Up" without a ticket.