|
![](/i/fill.gif) |
"gregjohn" <pte### [at] yahoo com> 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
|
![](/i/fill.gif) |