I am learning how to use the pygame module on python 3.5 using macosx (High Sierra). I have the module installed but keep getting an error message every time I initiate the display. Example:
import pygame
screen = pygame.display.set_mode((1000,1000)) #dimensions can be
anything
(Error I get)
AttributeError: module 'MacOS' has no attribute 'WMAvailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/user1/Documents/pygamet/pygametest.py", line 3, in
<module>
screen = pygame.display.set_mode((1000,1000))
SystemError: <built-in function set_mode> returned a result with an
error set
The error persists no matter what I do (adding pygame.init()
before it, etc.)
I know pygame might not be able to run on python3.5, but I have seen it work before on the same model computer as I am using.