You have a python3.2. Are you using Pygame version compatible with python 3
???

*p.s
 have not used pygame for a while, so do not know is there even pygame for
python 3

2012/6/3 Jeff Welch <neutronj...@gmail.com>

> OK, I'm not getting past your step #1.
>
> Can someone give me a suggestion about this error?
>
>
> Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "copyright", "credits" or "license()" for more information.
> >>> import pygame
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in <module>
>     import pygame
>   File
> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/__init__.py",
> line 95, in <module>
>     from pygame.base import *
> ImportError: dynamic module does not define init function (PyInit_base)
> >>>
>
> -Jeff Welch
>
> On Jun 2, 2012, at 1:44 PM, Ian Mallett wrote:
>
> Hey,
>
> To check whether PyGame is installed, in IDLE, type:
>
> import pygame
> from pygame.locals import *
> pygame.init()
>
> None of these lines should throw errors.  If they do, you have an install
> problem.  To make a basic window, type:
>
> surf = pygame.display.set_mode((400,200))
>
> If a window pops up, great!  Then, to get rid of that window, type:
>
> pygame.quit()
>
>
> As for basic tutorials, Googling "PyGame tutorial" yields this simple
> example on the second link:
> http://www.pygame.org/docs/tut/intro/intro.html
> . . . and this one on the third:
> http://www.pygame.org/docs/tut/chimp/ChimpLineByLine.html
> I personally find that the best way to learn is to just try to make
> something.  For PyGame for example, making a Pong clone is a classic first
> project.  Just find some example code and take wild guesses at what
> everything does.  If you get stuck there's always this list.
>
> Finally, as for downloading and running on PyGame.org, simply click on
> one of the projects at right, and then follow the links.
>
> Ian
>
>
>


-- 
*Vovk Donets*
 python developer

Reply via email to