Cannot activate AutoItLibrary - Class not registered
See original GitHub issueAccording to AutoItLibrary support this error needs to be adressed by RIDE: When activating Autoitlibrary I get these messages (Klasse is niet geregistreerd = Class not registered):
Initializing test library 'AutoItLibrary' with no arguments failed: com_error: (-2147221164, 'Klasse is niet geregistreerd', None, None)
Traceback (most recent call last):
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 167, in _get_instance return libcode(*self.positional_args, **dict(self.named_args))
File "D:\Program Files\Python\lib\site-packages\AutoItLibrary\__init__.py", line 91, in __init__ self._AutoIt = win32com.client.Dispatch("AutoItX3.Control") File "D:\Program Files\Python\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "D:\Program Files\Python\lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "D:\Program Files\Python\lib\site-packages\win32com\client\dynamic.py", line 83, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
File "D:\Program Files\Python\lib\site-packages\robotide\spec\librarymanager.py", line 82, in _fetch_keywords return get_import_result(path, library_args)
File "D:\Program Files\Python\lib\site-packages\robotide\spec\libraryfetcher.py", line 21, in get_import_result lib = robotapi.TestLibrary(path, args)
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 54, in TestLibrary lib.create_handlers()
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 100, in create_handlers self._create_handlers(self.get_instance())
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 159, in get_instance self._libinst = self._get_instance(self._libcode)
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 169, in _get_instance self._raise_creating_instance_failed()
File "D:\Program Files\Python\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 314, in _raise_creating_instance_failed % (self.name, args_text, msg, details))
Is this indeed a RIDE problem? I am on RIDE 2.0b1 and Python 3.7.9
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
8 Ways to Fix the “Class Not Registered” Error on Windows
The “Class Not Registered” error on Windows can be vague, and it's not obvious how you fix it at first. Here's how to...
Read more >AutoITLibrary turn red in RIDE when installed successful.
I tried install Robotframework-AutoITLibrary by follow this article: ... no arguments failed: com_error: (-2147221164, 'Class not registered', None, None)
Read more >Can't import AutoItLibrary in RIDE/Robot Framework
1 Answer 1 · Open cmd in "Run as administrator" mode · run the command pip install robotframework-autoitlibrary · Now clone the autoit...
Read more >Robot framework module vscode not loading: Error calling ...
Try to install extension Robocorp Code in VS Code and upgrade your pip robot-framework.
Read more >Robot Framework Tutorial on Windows with Examples!
Notice that similarly to Robot Framework, RIDE does not yet ... 5s *** Test Cases *** Login Should Failed With Unregistered Mail Adress...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hoi @Harm10 , I think I was able to reproduce your issue, but I was not able to link it to an issue in RIDE. I used autoitlibrary 1.2.7, and got a slightly different error (and in English rather than Dutch 😉
com_error: (-2147221005, 'Invalid class string', None, None)
with a nearly identical traceback.It could be that the installation of the AutoIt library was not completed successfully. During installation a dll is copied to
C:\RobotFramework\Extensions\AutoItLibrary\AutoItX3.dll
and then registered. I get this error when the registration part fails.To fix this:
C:\Windows\System32\regsvr32.exe
Can you please check to see if this resolves your issue?
Thank for the update @Harm10, with this info I will close the issue here.