asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.45k stars 1.26k forks source link

Pyautogui locate doesn't work on mac #750

Open Luis-Felipe-Franca opened 1 year ago

Luis-Felipe-Franca commented 1 year ago

Hi guys

I was using windows in my job, but now I start with a Mac pro. The function locate doesn't work at all. When I tried to use mouseinfo it returns NA_on_mac0S. How can I fix that?

Tenjim commented 1 year ago

Hi @Luis-Felipe-Franca ,

Just to know, On which Mac OS version you are ? Ventura ?

JayRizzo commented 1 year ago

Hey go ahead and try this: https://github.com/asweigart/pyautogui/issues/680#issuecomment-1100375021

It might be a path issue. if that doesn't work try using a virtual environment and reinstall pyautogui. https://github.com/asweigart/pyautogui/issues/279#issuecomment-1407463619

Good luck!