Hi,
I’m trying to use the locate on screen function from the PyAutoGui module, but it isn’t working.
This is all the code for now
import pyautogui
pyautogui.locateOnScreen(“image.png”)
This is what’s returned:
/Users/mauritswoudenberg/PycharmProjects/helloWorld/venv/bin/python /Users/mauritswoudenberg/PycharmProjects/helloWorld/demo.py
/Users/mauritswoudenberg/PycharmProjects/helloWorld/venv/lib/python3.11/site-packages/rubicon/objc/ctypes_patch.py:21: UserWarning: rubicon.objc.ctypes_patch has only been tested with Python 3.4 through 3.10. You are using Python 3.11.0. Most likely things will work properly, but you may experience crashes if Python’s internals have changed significantly.
warnings.warn(
Process finished with exit code 0
Any idea what I’m doing wrong here? I’m on mac M1.
Thanks!