-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
  • 235,170
  • 19
  • 170
  • 241
SID
  • 17
  • 5

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
  • 11,566
  • 10
  • 64
  • 92