import pyautoguipyautogui.locateOnScreen('photo.png')
Error: OSError: Failed to read photo.png because file is missing, has improper permissions, or is an unsupported or invalid format
import pyautoguipyautogui.locateOnScreen('photo.png')
Error: OSError: Failed to read photo.png because file is missing, has improper permissions, or is an unsupported or invalid format
The problem is in the development environment, it does not see 'photo.png'. Must be run from command line.