any-other-guy / LostArk-Endless-Chaos

💎Lost Ark Chaos Dungeon Farming Bot💎失落的方舟无限刷混沌地牢脚本
79 stars 49 forks source link

Dependency Version #75

Open PeterPangZichen opened 8 months ago

PeterPangZichen commented 8 months ago

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?

jhuynh125 commented 4 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