[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] root privileges when running pygame
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] root privileges when running pygame
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Thu, 9 Jun 2005 16:51:29 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 09 Jun 2005 02:48:22 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NoIOwJycgxYwAdGzEeQuduU9R3N1ZXM93QLAdwDDeq3poMsl62X0ZhQYxQJJXml2Yzdkyn6aPfbNpCBbzU/pBhTGZBEiiN2uHebiLUc/GhAtdH9D2kJW5hfPZn1f79g8zAkup5LOUVf7QJUoFMlpLlx2kvm0N4selFawfH/PKIs=
- In-reply-to: <42A7E5A3.4000706@its.monash.edu.au>
- References: <42A7E5A3.4000706@its.monash.edu.au>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.
>