-4

i need to find out as to why i land up in this error always. Image has been attahced for the same.

pyautogui is installed. Please help me in this case.enter image description here

eyllanesc
  • 221,139
  • 17
  • 121
  • 189
SID
  • 19
  • 3

1 Answers1

0

You named your file pyautogui.py, so when it runs import pyautogui, it's actually importing your file and not the real PyAutoGUI module. Your file doesn't have a size() function, which is why this particular error is showing.

You need to rename your file to something else, and delete the pyautogui.py file you saved.

Al Sweigart
  • 9,509
  • 9
  • 59
  • 85