easygui icon indicating copy to clipboard operation
easygui copied to clipboard

Compatibility Issues with Pywinauto

Open Morel-K-1204 opened this issue 3 years ago • 1 comments

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!

Morel-K-1204 avatar Aug 16 '22 22:08 Morel-K-1204

Maybe it's a bug of pywinauto, edit pywinauto/__init__.py line 83, change return com_init_mode to return 2, it should work.

hrpzcf avatar Sep 22 '22 17:09 hrpzcf