我可以安装AutoItLibrary,而当从RIDE导入它时,它总是显示红色。
和日志文件:
Traceback (most recent call last):
Initializing test library 'AutoItLibrary' with no arguments failed: com_error: (-2147024703, 'OLE error 0x800700c1', None, None)
Traceback (most recent call last):
File "C:Python27libsite-packagesAutoItLibrary__init__.py", line 79, in __init__
self._AutoIt = win32com.client.Dispatch("AutoItX3.Control")
File "C:Python27libsite-packageswin32comclient__init__.py", line 95, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:Python27libsite-packageswin32comclientdynamic.py", line 114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:Python27libsite-packageswin32comclientdynamic.py", line 91, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
File "C:Python27libsite-packagesrobotidespeclibrarymanager.py", line 81, in _fetch_keywords
return get_import_result(path, library_args)
File "C:Python27libsite-packagesrobotidespeclibraryfetcher.py", line 20, in get_import_result
lib = robotapi.TestLibrary(path, args)
File "C:Python27libsite-packagesrobotidelibrobotrunningtestlibraries.py", line 45, in TestLibrary
lib.create_handlers()
File "C:Python27libsite-packagesrobotidelibrobotrunningtestlibraries.py", line 102, in create_handlers
self.handlers = self._create_handlers(self.get_instance())
File "C:Python27libsite-packagesrobotidelibrobotrunningtestlibraries.py", line 163, in get_instance
self._libinst = self._get_instance()
File "C:Python27libsite-packagesrobotidelibrobotrunningtestlibraries.py", line 173, in _get_instance
self._raise_creating_instance_failed()
File "C:Python27libsite-packagesrobotidelibrobotrunningtestlibraries.py", line 227, in _raise_creating_instance_failed
% (self.name, args_text, msg, details))
有人能帮忙吗?
尝试使用ActivePython代替标准发行版。重新安装"pywin32"应用程序。这就解决了我的问题