Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Version #75

Open
PeterPangZichen opened this issue Dec 17, 2023 · 1 comment
Open

Dependency Version #75

PeterPangZichen opened this issue Dec 17, 2023 · 1 comment

Comments

@PeterPangZichen
Copy link

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
Copy link

jhuynh125 commented Apr 12, 2024

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:

#74 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants