Skip to content
Advertisement

Cannot import pywinauto on Windows 10

I installed pywinauto using pip install pywinauto.

OS: Windows 10

Python: 3.6.2

When I run python and try to import pywinauto, I get the error:

JavaScript

Any ideas how to fix this?

Advertisement

Answer

I have the same issue today and fixed it by pip install comtypes==1.1.7. It caused by comtypes library which release a new version 1.1.8 at Dec.26. Downgrade to previous version, it works well now.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement