k123456xhk 发表于 2021-7-27 16:43:22

求助,求助,有大佬吗?


在python里直接导入TURING.py
系统是win7,环境是 32位的
运行会报错:
Traceback (most recent call last):
File "D:\py\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
    IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221021, '操作无法使用', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/PY储存/连连看脚本/测试图灵插件.py", line 3, in <module>
    import TURING
File "D:\py\TURING.py", line 15, in <module>
    TURING = win32com.client.Dispatch('TURING.FISR')
File "D:\py\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "D:\py\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "D:\py\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221164, '没有注册类', None, None)

Process finished with exit code 1



页: [1]
查看完整版本: 求助,求助,有大佬吗?