Problem with Pygame

Started by
4 comments, last by louie999 9 years, 1 month ago

MZdRSts.png

Why do i get those errors? from what i've read in some Pygame tutorials:


pygame.display.set_mode()

That should have worked,but its giving me errors,can someone explain to me why i'm getting those errors, im quite new to these things sad.png

Advertisement

I think you have missed parameters in the function.

setMode((widht, height), 0, bits)

0 is the flag, on the place bits, you can write it to be 32.

EDIT:

You should init first!

pygame.init()

I think you have missed parameters in the function.

setMode((widht, height), 0, bits)

0 is the flag, on the place bits, you can write it to be 32.

EDIT:

You should init first!


pygame.init()

ydlLz0q.png

Ouch ohmy.png

Sooooo why is that error(from my above post) happening? i put


pygame.init()

but i still get that error? Iam completely clueless on my its still giving errors mellow.png

By any chance do you have any file called 'pygame.py' in your python path (probably the directory from where you're launching the python interpreter)? Looks like it's not loading the real pygame library but another module.

You can check which 'pygame.py' is your interpreter loading by running the following


import pygame
pygame.__file__

Also, which version of pygame do you have?

By any chance do you have any file called 'pygame.py' in your python path (probably the directory from where you're launching the python interpreter)? Looks like it's not loading the real pygame library but another module.

You can check which 'pygame.py' is your interpreter loading by running the following


import pygame
pygame.__file__

Also, which version of pygame do you have?

I checked it,doesn't have any pygame.py,about the version this is what i downloaded:

eUzdFh9.png

This topic is closed to new replies.

Advertisement