When I was making my first-game this problem occurred.
My code(python):
#IMPORT
import pygame, time, sys
pygame.init()
#Pic in Game
size = 20
bodyPic = pygame.transform.scale(pygame.image.load('white.jpg'),(size, size))
headPic = pygame.transform.scale(pygame.image.load('gray.jpg'),(size, size))
foodPic = pygame.transform.scale(pygame.image.load('red.jpg'),(size, size))
It noticed that "No such file or directory" although all my .jpg file was in the same folder with the above code!
I have tried many way to solve it but I cant (Including write the full path of the file in the "pygame.image.load.()" !)
At least, thank you for reading my problem :">