Just a sanity check try running this just before loading the image
you can try using the absolute path
What was your pygame installation process? Did you happen to compile pygame without a dependency or did you use pip?
print(os.getcwd())Are you running this with an IDE? If so i would run it via terminal/command prompt and see if it is an IDE related issue. IDE's can change the current working directory than what you think it might be.
you can try using the absolute path
Quote:Change pygame.image.load('/images/xxx') to
pygame.image.load('/Users/xxx/..../images/xxxx')
What was your pygame installation process? Did you happen to compile pygame without a dependency or did you use pip?
Recommended Tutorials: