locate function always returns None
See original GitHub issueI did a screenshot of my screen on mac (entire display) and then cropped a small area. Used those images on the locate function always returns None.
print pyautogui.locate('button.png', 'screengrab.png', grayscale=True)
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:31 (8 by maintainers)
Top Results From Across the Web
Why does my recursive function return None? - Stack Overflow
Use return for recursive function in order to put its value into the stack , so that when function will do recursion values...
Read more >What does it mean when the Python function returns none?
It means you have not returned anything. You must add a return statement into the function. For example: def fun(a, b):.
Read more >Why does the return function in python always return none no ...
If you're trying to run the code above then to me it looks like you've only defined things. In this case you've made...
Read more >Why does my function print None in Python [Solved] | bobbyhadz
Functions often print None when we pass the result of calling a function that doesn't return anything to the print() function. All functions...
Read more >Python return statement - DigitalOcean
Every function in Python returns something. If the function doesn't have any return statement, then it returns None . def print_something(s): ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I started a new issue (#150) for this feature request, to keep the issues separate
For what it’s worth, I solved this problem for myself in Windows 10 by turning off “Transparency Effects” in Themes and Related Settings => Colors.