question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import wmi, pywinauto print Win32 exception occurred releasing IUnknown at xxx

See original GitHub issue

Expected 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

  1. Install Python 3.7.2 32 Bit or Python 3.7.2 64 Bit
  2. Create a new python File with import wmi, pywinauto
  3. 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:open
  • Created 4 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sunjeencommented, Sep 9, 2019

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

0reactions
airelilcommented, Jan 22, 2020

To dig further, I would suggest uninstall comtypes and try the imports again. This should allow to run pywinauto with only win32 backend

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found