If you encounter similar issue:
File "/Users/pkardas/Private/GUPB/gupb/view/render.py", line 24, in load_sprite
sprite = pygame.image.load(path).convert()
pygame.error: File is not a Windows BMP file
Remove 'pygame' entirely (pip uninstall pygame) - note that there might be some files that were not removed, go to folder where you have your Python installed and remove anything that has 'pygame' in the name 😛
Run following command: [source]
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi mercurial
Then you can install pygame.
If you encounter:
Unable to obtain graphics context for NSWindow (Mojave behavior)
after reinstalling pygame, do:
and then:
pip3 install pygame==2.0.0.dev6
Enjoy your game 🎉
If you encounter similar issue:
Remove 'pygame' entirely (
pip uninstall pygame) - note that there might be some files that were not removed, go to folder where you have your Python installed and remove anything that has 'pygame' in the name 😛Run following command: [source]
Then you can install
pygame.If you encounter:
after reinstalling
pygame, do:and then:
Enjoy your game 🎉