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

Re: [pygame] pygame import error



I don't get any errors running that line in my browser.  One thing I
notice is that you're running on Linux.  So, it's possible that you
haven't set your LIB_PATH or whatever to point  to the appropriate
library.


On Sun, 26 Dec 2004 23:34:42 +0200 (EET), olavi@xxxxxxxxx
<olavi@xxxxxxxxx> wrote:
> Hello,
> 
> I wrote a sript, where i'm trying to import pygame.locals module, but when
> i execute this script, i get following error message:
> ImportError: No module named locals
> 
> my file:
> #! /usr/bin/python2.3
> 
> import pygame
> from pygame.locals import *
> 
> but:
> 
> olavi@oicu:~$ python2.3
> Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
> [GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pygame
> >>> from pygame.locals import *
> >>>
> 
> What's wrong with that script?
> 
> Olavi Ivask
> 
> 


-- 
Andrew Ulysses Baker
"failrate"