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

[pygame] pygame import error



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