Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issues with Pywinauto #206

Open
Morel-K-1204 opened this issue Aug 16, 2022 · 1 comment
Open

Compatibility Issues with Pywinauto #206

Morel-K-1204 opened this issue Aug 16, 2022 · 1 comment

Comments

@Morel-K-1204
Copy link

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!

@hrpzcf
Copy link
Contributor

hrpzcf commented Sep 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants