# please solve this error

**URL:** <https://discuss.python.org/t/please-solve-this-error/11447>\
**Category:** Python Help\
**Tags:** help\
**Created:** [October 25, 2021, 11:35am UTC](https://discuss.python.org/t/please-solve-this-error/11447 "2021-10-25T11:35:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![011](https://avatars.discourse-cdn.com/v4/letter/0/58956e/32.png) [@011](https://discuss.python.org/u/011)\
**Post date:** [October 25, 2021, 11:35am UTC](https://discuss.python.org/t/please-solve-this-error/11447/1 "2021-10-25T11:35:46Z")

</div>

import pygame  
import time

pygame.init()  
display\_surface=pygame.display.set\_mode((600,600))  
image=pygame.image.load(“backgroundone.jpg”)

font=pygame.font.SysFont(“Times New Roman”,72)  
text=font.render(“Happy”,True,(0,0,0))  
text2=font.render(“Birthday”,True,(0,0,0))  
text3=font.render(“MD GAUS”,True,(0,0,0))  
display\_surface.fill((255,255,255))  
display\_surface.blit(image,(0,0))  
display\_surface.blit(text,(210,180))  
display\_surface.blit(text2,(180,264))  
display\_surface.blit(text3,(160,260))  
pygame.display.update()  
time.sleep(2)

image2=pygame.image.load(“backgroundtwo.jpg”)  
font3=pygame.font.SysFont(“Arial”,78)  
text4=font3.render(“Wish You Happy Birthday”,True,(0,0,0))  
display\_surface.fill((255,255,255))  
display\_surface.blit(image2,(0,0))  
display\_surface.blit(text4,(60,80))  
pygame.display.update()  
time.sleep(3)

image3=pygame.image.load(“backgroundthree.jpg”)  
display\_surface.fill((255,255,255))  
display\_surface.blit(image3,(0,0))  
pygame.display.update()  
time.sleep(4)

---

<div class="post-metadata">

**Author:** ![steven.daprano](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steven.daprano/32/1083_2.png) [@steven.daprano](https://discuss.python.org/u/steven.daprano)\
**Post date:** [October 25, 2021, 10:16pm UTC](https://discuss.python.org/t/please-solve-this-error/11447/2 "2021-10-25T22:16:44Z")

</div>

Hi Kais,

Thank you for showing the code you are using, but you haven’t told us  
what error you are getting.

Are you getting a traceback? Please copy and paste the full error  
traceback, starting with the line “Traceback…” to the end of the error  
message.

Please don’t post an image or screen shot of the error unless all else  
fails.

If you are not getting a traceback, you will need to tell us what sort  
of error you are getting. What did you expect to happen, and what  
happened instead?

---

<div class="post-metadata">

**Author:** ![011](https://avatars.discourse-cdn.com/v4/letter/0/58956e/32.png) [@011](https://discuss.python.org/u/011)\
**Post date:** [October 26, 2021, 4:51am UTC](https://discuss.python.org/t/please-solve-this-error/11447/3 "2021-10-26T04:51:39Z")

</div>

hi  
There Is No error in the program  
but still, it’s showing one photo only  
I have included 3 photos in the program  
but only one is showing

---

<div class="post-metadata">

**Author:** ![011](https://avatars.discourse-cdn.com/v4/letter/0/58956e/32.png) [@011](https://discuss.python.org/u/011)\
**Post date:** [October 26, 2021, 5:05am UTC](https://discuss.python.org/t/please-solve-this-error/11447/4 "2021-10-26T05:05:57Z")

</div>

Traceback (most recent call last):  
File “C:\Users\Havery.DESKTOP-90L946F\Downloads\happyB (1).py”, line 3, in   
import pygame  
ModuleNotFoundError: No module named ‘pygame’

---

<div class="post-metadata">

**Author:** ![steven.daprano](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steven.daprano/32/1083_2.png) [@steven.daprano](https://discuss.python.org/u/steven.daprano)\
**Post date:** [October 26, 2021, 6:12am UTC](https://discuss.python.org/t/please-solve-this-error/11447/5 "2021-10-26T06:12:24Z")

</div>

You need to install Pygame.

Have you installed it? See the instructions here:

[https://www.pygame.org/](https://www.pygame.org/)

---

<div class="post-metadata">

**Author:** ![011](https://avatars.discourse-cdn.com/v4/letter/0/58956e/32.png) [@011](https://discuss.python.org/u/011)\
**Post date:** [October 26, 2021, 6:33am UTC](https://discuss.python.org/t/please-solve-this-error/11447/6 "2021-10-26T06:33:16Z")

</div>

Yes, I installed it  
but again & again, he’s showing import pygame
