Python 3.6.4
Pillow (PIL) 5.0
OS Win 7
pyscreeze 0.1.13
I'm trying to utilize the screenshot functions with pyautogui, but encountering an issue.
import pyautogui
image = pyautogui.locateOnScreen('imagepath')
print(image)
I'm receiving the following error:
File "C:\Users\a7153\AppData\Local\Programs\Python\Python36\lib\site-packages\pyscreeze__init__.py", line 315, in _screenshot_win32 im = ImageGrab.grab() NameError: name 'ImageGrab' is not defined
I've tried going to pyscreeze and directly importing from PIL (pillow) import ImageGrab, but with no luck. I've gone through the documentation and there doesn't seem to be anything on the issue. Does anyone have any suggestions?