POV-Ray : Newsgroups : povray.off-topic : Python, pygames, ubuntu Server Time
5 Nov 2024 16:41:41 EST (-0500)
  Python, pygames, ubuntu (Message 1 to 3 of 3)  
From: gregjohn
Subject: Python, pygames, ubuntu
Date: 4 Dec 2008 21:55:00
Message: <web.493897f88a90555d34d207310@news.povray.org>
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? :)

thanks


Post a reply to this message

From: nemesis
Subject: Re: Python, pygames, ubuntu
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

From: nemesis
Subject: Re: Python, pygames, ubuntu
Date: 9 Dec 2008 00:56:42
Message: <493e089a@news.povray.org>
Have you solved the problem?


Post a reply to this message

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