Cant Import images from pygame in python. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Cant Import images from pygame in python.

I want to built a basic 2d game with the help of pygame extension in python but when I try to import any image or audio file from pygame ,it shows an error : Couldn't open image.png .I tried re-installing everything from python to its extensions,but still no luck. I also searched on internet but still nothing, What should I do now?

30th Dec 2017, 2:15 PM
justanothercoder
justanothercoder - avatar
1 Answer
+ 1
what type is the error? give me the code, so i can debug it
31st Dec 2017, 1:48 PM
Kevin AS
Kevin AS - avatar