It could be the directory name causing an issue
2) are you running on windows OS? I wasnt sure at first because you did not have the C drive in the path. The only reason i suspected windows was because i saw the AppData directory.
In windows OS you have to put quotation marks around the path if there is a space in a directory name such as:
First Pygame1) Is there a space here?
2) are you running on windows OS? I wasnt sure at first because you did not have the C drive in the path. The only reason i suspected windows was because i saw the AppData directory.
In windows OS you have to put quotation marks around the path if there is a space in a directory name such as:
"C:/Users/ZULU/AppData/Local/Programs/Python/Python37-32/Zion_Python Games/First Pygame/cannon.png"However in linux and mac you escape it such as:
C:/Users/ZULU/AppData/Local/Programs/Python/Python37-32/Zion_Python Games/First\ Pygame/cannon.pngI havent used windows in a long time so i could be wrong. But i would try escaping the space in the path when you load it from pygame
pygame.image.load("C:/Users/ZULU/AppData/Local/Programs/Python/Python37-32/Zion_Python Games/First\ Pygame/cannon.png")
Recommended Tutorials: