Compatibility Issues with Pywinauto
I'm using this module alongside pywinauto to automate the installation process for an application my workplace uses, and I've encountered a bit of strange behavior. While almost everything works just fine, for some reason any calls to the easygui.diropenbox() function hang indefinitely, and the program freezes until it receives an interrupt signal.
As far as I'm aware, the simplest code to recreate the problem is as follows:
import pywinauto
import easygui
easygui.diropenbox()
Here's the relevant information about my machine:
- OS - Windows 10 Enterprise (64-bit)
- Python - 3.7.13
- Pywinauto - 0.6.8
- Easygui - 0.98.3
I've only recently figured out how to reproduce the issue, so I haven't had much time to try and figure out the cause, but I suspect that because both modules are GUI-related, maybe there's some common dependency that's causing issues? Of course, feel free to request more information from me!
Maybe it's a bug of pywinauto, edit pywinauto/__init__.py line 83, change return com_init_mode to return 2, it should work.