Jeff Welch | 2 Jun 2012 18:19
Picon

I need the Noob wiki

Hello,

I see the discussion here is pretty high level, but I'm hoping someone can direct me to some very low level help.

I'm brand new to both Python and Pygame.

I'm working on a Mac 10.6.8, and I found some instructions for building the install here.  http://programming.itcarlow.ie/PyGameInstall.pdf

After following those as best I could I found that I needed to update Tcl to 8.5.11, and I did that.

It seems that I have a working Python 3.2.3 IDLE.  Interactive mode works fine on screen.  However, I am having
trouble running example pygame programs.   I'm not really sure how to see if Pygame is working.

So, I probably need some install troubleshooting tips, and also some basic instructions on how one
downloads a Pygame game and runs it.  

Thank you!

Jeff Welch

Ian Mallett | 2 Jun 2012 19:44
Picon

Re: I need the Noob wiki

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:
. . . and this one on the third:
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
Jeff Welch | 3 Jun 2012 03:31
Picon

Re: I need the Noob wiki

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:
. . . and this one on the third:
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 | 7 Jun 2012 06:59
Picon
Gravatar

Re: I need the Noob wiki

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 <neutronjeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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:
. . . and this one on the third:
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


Jeffrey Welch | 7 Jun 2012 07:48
Picon

Re: I need the Noob wiki

Can someone answer that?
What Pygame, if any, is compatible with 3.2 ?

On Jun 7, 2012 12:59 AM, "Vovk Donets" <donets.vladimir-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
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 <neutronjeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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:
. . . and this one on the third:
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


Ian Mallett | 7 Jun 2012 07:56
Picon

Re: I need the Noob wiki

On Wed, Jun 6, 2012 at 10:48 PM, Jeffrey Welch <neutronjeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Can someone answer that?
What Pygame, if any, is compatible with 3.2 ?

On the downloads page, it appears to exist for Windows, but not for Mac.  Perhaps someone else here knows more on the build state can elaborate, but as far as I know PyGame 3.2 for Mac doesn't yet exist?

In my opinion, however, the world isn't ready for Python 3.2--not enough is compatible with it yet.  Python 2.7 is plenty powerful, methinks.  

Thanks,
Ian
Russell Jones | 7 Jun 2012 09:52
Picon

Re: I need the Noob wiki

So 3.2 shouldn't have things made compatible with it because it doesn't have things that are compatible with it? Or am I missing something?


Russell

On 7 June 2012 06:56, Ian Mallett <geometrian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Wed, Jun 6, 2012 at 10:48 PM, Jeffrey Welch <neutronjeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Can someone answer that?
What Pygame, if any, is compatible with 3.2 ?

On the downloads page, it appears to exist for Windows, but not for Mac.  Perhaps someone else here knows more on the build state can elaborate, but as far as I know PyGame 3.2 for Mac doesn't yet exist?

In my opinion, however, the world isn't ready for Python 3.2--not enough is compatible with it yet.  Python 2.7 is plenty powerful, methinks.  

Thanks,
Ian

Vovk Donets | 7 Jun 2012 10:09
Picon
Gravatar

Re: I need the Noob wiki

Just use 2.7. Python 3.2 not ready for productions. It will take another couple of years to make all libs for Python 2.7 compatible with 3.2

2012/6/7 Russell Jones <russell.jones <at> gmail.com>
So 3.2 shouldn't have things made compatible with it because it doesn't have things that are compatible with it? Or am I missing something?

Russell


On 7 June 2012 06:56, Ian Mallett <geometrian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Wed, Jun 6, 2012 at 10:48 PM, Jeffrey Welch <neutronjeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Can someone answer that?
What Pygame, if any, is compatible with 3.2 ?

On the downloads page, it appears to exist for Windows, but not for Mac.  Perhaps someone else here knows more on the build state can elaborate, but as far as I know PyGame 3.2 for Mac doesn't yet exist?

In my opinion, however, the world isn't ready for Python 3.2--not enough is compatible with it yet.  Python 2.7 is plenty powerful, methinks.  

Thanks,
Ian




--
Vovk Donets
 python developer



Gmane