使用pywinauto和wmi出现“ Win32异常释放IUnknown发生在…”错误

时间:2019-07-04 14:26:28

标签: python wmi pywinauto

  • Python:3.7.2 64位
  • comtypes:1.1.7
  • pywin32:224
  • pywinauto:0.6.6
  • wmi:1.4.9

示例1:

import pywinauto
print('Test Imports')

结果1:

Test Imports

示例2:

import wmi
print('Test Imports')

结果2:

Test Imports

示例3:

import wmi, pywinauto
print('Test Imports')

结果3:

Test Imports
Win32 exception occurred releasing IUnknown at 0xa0695ec0

示例4:

import pywinauto, wmi
print('Test Imports')

结果4:

Test Imports
Win32 exception occurred releasing IUnknown at 0x92e03a28
Win32 exception occurred releasing IUnknown at 0x90680bf8
Win32 exception occurred releasing IUnknown at 0x9312bc98

使用import sys; sys.coinit_flags = 0也无济于事。

0 个答案:

没有答案