asweigart / PyGetWindow

A simple, cross-platform module for obtaining GUI information on applications' windows.
BSD 3-Clause "New" or "Revised" License
362 stars 69 forks source link

couldNotImportPyGetWindow() #8

Open susegecko opened 5 years ago

susegecko commented 5 years ago

I am not sure if this is Windows 10 specific, but I am unable to obtain getwindow type info.

The following just throws an error.

EX: pyautogui.getAllWindows()

Exception has occurred: Exception PyAutoGUI was unable to import pygetwindow. Please install this module. File "C:\Users\My_User\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyautogui__init__.py", line 109, in couldNotImportPyGetWindow raise Exception('PyAutoGUI was unable to import pygetwindow. Please install this module.') File "E:\Users\My_user\source\repos\Python\hello.py", line 25, in pyautogui.getAllWindows() File "C:\Users\My_User\AppData\Local\Programs\Python\Python37\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\MY_USER\AppData\Local\Programs\Python\Python37\Lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\Users\My_User\AppData\Local\Programs\Python\Python37\Lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname)