import wmi, pywinauto print Win32 exception occurred releasing IUnknown at xxx
See original GitHub issueExpected Behavior
No Error Message like Win32 exception occurred releasing IUnknown at xxx
Actual Behavior
import wmi, pywinauto
results in Error Message Win32 exception occurred releasing IUnknown at xxx
Steps to Reproduce the Problem
- Install Python 3.7.2 32 Bit or Python 3.7.2 64 Bit
- Create a new python File with
import wmi, pywinauto
- Execute the File >> Error Message:
Win32 exception occurred releasing IUnknown at xxx
Short Example of Code to Demonstrate the Problem
import wmi, pywinauto
Specifications
- Pywinauto version: 0.6.6
- WMI version: 1.4.9
- Python version and bitness: 3.7.2 32 Bit / 64 Bit
- Platform and OS: Windows Server 2012 R2
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Issues · pywinauto/pywinauto · GitHub
import wmi, pywinauto print Win32 exception occurred releasing IUnknown at xxx 3rd-party issue need investigation Priority-Critical question ...
Read more >https://mail.python.org/pipermail/python-win32/200...
But when I try in win32 I get a pickle error saying it cant pickle None Type when I start the process. Python...
Read more >Recently Active 'com' Questions - Page 5 - Stack Overflow
Python win32com - Class not registered error ... The code I've learnt from several sources looks like this: # Import packages import os...
Read more >https://huggingface.co/jeniya/BERTOverflow/commit/...
... +##ript +know +##ari +##ions +##llow +error +sim +object +##ial +ev +time ... +##key +simplest +released +##ainer +destination +rate +printed +Services ...
Read more >stackoverflow.txt | searchcode
... 96oop;3118 97firefox;3100 98database-design;3088 99generics;3074 100error;3073 ... 217select;1698 218date;1695 219boost;1693 220win32;1686 221iis7;1685 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, May I ask is there any progress on this? I have also encountered the same issue, the issue only happened when pywinauto and wmi module was imported together
And this exception can be reduced by using multithreading
To dig further, I would suggest uninstall comtypes and try the imports again. This should allow to run pywinauto with only win32 backend