python - Why does PyAutoGUI freeze when calling `size`? -
i'm trying test single line of pyautogui gets stuck size method called.
import pyautogui print("library imported") screenwidth, screenheight = pyautogui.size() print("measurements taken") pyautogui.moveto(screenwidth / 2, screenheight / 2) print("cursor moved") the terminal didn't print "measurements taken" , not terminate process. found error in console log:
31/03/2015 15:57:30.000 kernel[0]: process python[2574] caught causing excessive wakeups. observed wakeups rate (per sec): 822; maximum permitted wakeups rate (per sec): 150; observation period: 300 seconds; task lifetime number of wakeups: 45377 i ran tracer see getting stuck, , apparently last line process reads is:
pyautogui/__init__.py:122 line return platformmodule._size() the program not go past calling platformmodule._size() in library.
my environment osx yosemite , have installed pyobjc , pyobjc-core.
Comments
Post a Comment