python pyautogui AttributeError: 'module' object has no attribute 'size'
<pre><code>import pyautogui
import time

def pause():
    time.sleep(0.001)

while True:
    pyautogui.keyDown('down')


    time.sleep(5)
</code></pre>

<p>Gives me error</p>

<pre><code>C:\Python27\python.exe E:/Python/win32/pythongui.py
Traceback (most recent call last):
  File "E:/Python/win32/pythongui.py", line 1, in &lt;module&gt;
    import pyautogui
  File "E:\Python\win32\pyautogui.py", line 45, in &lt;module&gt;
    screenWidth, screenHeight = pyautogui.size()
AttributeError: 'module' object has no attribute 'size'

Process finished with exit code 1
</code></pre>

<p>I don't understand why I get this error I don't even call attribute size and yesterday everything worked just fine. Today for some weird reason I keep getting this error. Code is exactly same as before when pyautogui worked.</p>