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

Re: [pygame] root privileges when running pygame



Also check the permissions set on the different components of your
install.  Would it be possible to have inadequate permissions on a
part of Pygame?

On 6/8/05, Rene Dudfield <renesd@xxxxxxxxx> wrote:
> maybe you don't have permission?  What type of video card is it?  Not
> a voodoo is it?
> 
> Sounds like your linux box is taking over the video display.  Which
> requires root.
> 
> By default pygame/SDL usually tries going to window mode unless you
> give it a full screen flag.  So maybe SDL can not do windowed things
> in your setup?
> 
> Another possibility is you are running with eg svga sdl video driver.
> 
> 
> On 6/9/05, Darrell Stitt <Darrell.Stitt@xxxxxxxxxxxxxxxxx> wrote:
> > 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.
> >
> 


-- 
Andrew Ulysses Baker
"failrate"