asweigart / asweigart/PyGetWindow

couldNotImportPyGetWindow()

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
422
Forks
73
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.