module object has no attribute init

+1 lucas morrow · February 7, 2015
I have a error already...
>>> pygame.init()
Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    pygame.init()
AttributeError: 'module' object has no attribute 'init'

When i dir pygame this is all i get...
>>> dir(pygame)

['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']

Post a Reply

Replies

Oldest  Newest  Rating
0 lucas morrow · February 13, 2015
Worked it out, I had Python 3.4 downloaded and pygame 3.2 installed.
  • 1

Python

107,099 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator