Open PeterPangZichen opened 8 months ago
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:
https://github.com/any-other-guy/LostArk-Endless-Chaos/issues/74#issuecomment-1942791408
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?