You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So as far as I know, PyAutoGui changed its behaviour for all locateOnScreen function to throw an ImageNotFoundException instead of returning None.
"NOTE: As of version 0.9.41, if the locate functions can’t find the provided image, they’ll raise ImageNotFoundException instead of returning None."
So I downgrade it to 0.9.40. However, that gives me a new issue: "AttributeError: module 'pyautogui' has no attribute 'screenshot'". What's the proper version of PyAutoGui should I use?
The text was updated successfully, but these errors were encountered:
In case someone run into in the future, the answer to this error is not to downgrade pyautogui but to downgrade PyScreeze.
Here's the version I use:
pyautogui == 0.1.29
PyScreeze == 0.9.54
If needed, here's the full requirements.txt
PyScreeze~=0.1.29
pyautogui~=0.9.54
keyboard
numpy
pywin32
Pillow
opencv-python
pydirectinput~=1.0.4
PyGetWindow~=0.0.9
An alternative to above is to change PyScreeze setting. See this thread:
So as far as I know, PyAutoGui changed its behaviour for all locateOnScreen function to throw an ImageNotFoundException instead of returning None.
"NOTE: As of version 0.9.41, if the locate functions can’t find the provided image, they’ll raise ImageNotFoundException instead of returning None."
So I downgrade it to 0.9.40. However, that gives me a new issue: "AttributeError: module 'pyautogui' has no attribute 'screenshot'". What's the proper version of PyAutoGui should I use?
The text was updated successfully, but these errors were encountered: