POV-Ray : Newsgroups : povray.off-topic : Python, pygames, ubuntu : Re: Python, pygames, ubuntu Server Time
6 Sep 2024 15:20:05 EDT (-0400)
  Re: Python, pygames, ubuntu  
From: nemesis
Date: 4 Dec 2008 23:30:00
Message: <web.4938ae23ef81d091def618250@news.povray.org>
"gregjohn" <pte### [at] yahoocom> wrote:
> I was trying out some tutorials in pygame.  I'm using kubuntu 8.04.1 with python
> (2.5.2-0ubuntu1) and pygame (1.7.1release-4.1ubuntu1).
>
> A simple tute ( last example of code at http://rene.f0o.com/mywiki/LectureThree
> ) gave a AttributeError: 'module' object has no attribute 'init' error.
>
> I could get on the road to learning if only I could get my first serious program
> to run.  I'm despairing over the possibility that I have the wrong version of
> python or pygame.  And tutes are supposed to work, aren't they? :)

What did you type, exactly?

I was willing to help and would download the pygame package, but alas it was
already installed! :)

So, I just opened a python shell, and typed:

>>> import pygame

all ok.

>>> dir( pygame )

init is listed there

>>> pygame.init
<built-in function init>

so far, so good.

>>> pygame.init
(6,0)

and I also heard a slight click on the audio, meaning it probably initialized
its audio engine or whatever.

So, it worked here and I don't have a clue what may have happened to you, sorry.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.