[Tutor] Module / import problem

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Tue, 26 Jun 2001 11:19:18 -0700 (PDT)


On Tue, 26 Jun 2001, Rob Hayes wrote:

> I am very new to python and programing.  About half way through my
> first online tutorial.  On a break from my lesson, I downloaded and
> installed pygame.
> 
> I opened the "chimp example" in IDLE.  When I ran the program, I get
> an import error.
> 
> import pygame, pygame.font, pygame.image, pygame.mixer
> ImportError: No module named pygame
>
> I think my install of pygame was incorrect?  Any help on what I am
> doing wrong would be appreciated.  If this is the wrong list for the
> this question, please point me in the right direction.

Hi Rob,

Can you tell us a little more about how you installed it?  That might give
us some ideas why Python wasn't able to find pygame.  My initial guess is
that pygame didn't install in a place that Python expected, but we need
more information.

If we can't give a good answer, then you might want to talk with the
pygame mailing list too.  They're located here:

    http://pygame.seul.org/info.shtml#maillist

and they might know more about the peculiarities of pygame.


Good luck to you!