当前位置:网站首页>pywintypes.com_error: (-2147221020, ‘无效的语法‘, None, None)

pywintypes.com_error: (-2147221020, ‘无效的语法‘, None, None)

2022-04-23 15:32:00 信息化未来

  File "G:\od15\venv\lib\site-packages\wmi.py", line 175, in <module>
    obj = GetObject("winmgmts:")
  File "G:\od15\venv\lib\site-packages\win32com\client\__init__.py", line 85, in GetObject
    return Moniker(Pathname, clsctx)
  File "G:\od15\venv\lib\site-packages\win32com\client\__init__.py", line 103, in Moniker
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "G:\od15\odoo\http.py", line 649, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "G:\od15\odoo\http.py", line 307, in _handle_exception
    raise exception.with_traceback(None) from new_cause
pywintypes.com_error: (-2147221020, '无效的语法', None, None)

在网上也查了很多资料,无效的语法

obj

版权声明
本文为[信息化未来]所创,转载请带上原文链接,感谢
https://blog.csdn.net/fqfq123456/article/details/124341385