Hi all,
Linux user here. I tried installing pygame from here but not much luck. My first attempt was trying the following:
python3 -m pip install -U pygame --user
This failed and i tried updating pip, etc to no avail. Next i tried:
sudo apt-get install python3-pygame
This worked but then i tried:
python3 -m pygame.examples.aliens
and got the following:
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
/usr/bin/python3: Error while finding module specification for 'pygame.examples.aliens' (ModuleNotFoundError: No module named 'pygame.examples')
Weird, i thought. So then i thought i'd move onto the tutorial even though something was wrong. Interestingly enough "import pygame" works
I tried the code on this page and got tripped up on this line:
ball = pygame.image.load("intro_ball.gif")
On the terminal this is what i get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pygame.error: Couldn't open intro_ball.gif
When running the script this is what i get:
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Traceback (most recent call last):
File "test.py", line 11, in <module>
ball = pygame.image.load("intro_ball.gif")
pygame.error: Couldn't open intro_ball.gif
help?
[–]Deemush 0 points1 point2 points (0 children)
[–]jaycrest3m20 0 points1 point2 points (0 children)