GitHubShen / robotframework-autoitlibrary

Automatically exported from code.google.com/p/robotframework-autoitlibrary
Apache License 2.0
0 stars 0 forks source link

AutoItLibrary will not launch in Windows 7 Ult x32 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Installed ActivePython, Robot Framework and AutoItLibrary on a virtual
machine with Windows 7 Ult x32. (See related bug on PIL installation
problem).  Tried to run the Calculator tests and got this:

Error in file
'C:\RobotFramework\Extensions\AutoItLibrary\tests\Calculator_Test_Cases.html'
in table 'Setting' in element on row 5: Creating an instance of the test
library 'AutoItLibrary' with arguments
'C:\RobotFramework\Extensions\AutoItLibrary\tests\results', '10' and 'True'
failed: com_error: (-2147221005, 'Invalid class string', None, None)
Traceback (most recent call last):
 File "C:\Python25\Lib\site-packages\robot\running\testlibraries.py", line
150, in _get_instance
   return self._libcode(*self.args)
 File "C:\Python25\Lib\site-packages\AutoItLibrary\__init__.py", line 76,
in __init__
   self._AutoIt     = win32com.client.Dispatch("AutoItX3.Control")
 File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95,
in Dispatch
   dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
 File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 98,
in _GetGoodDispatchAndUserName
   return (_GetGoodDispatch(IDispatch, clsctx), userName)
 File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 78,
in _GetGoodDispatch
   IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)

My guess is that the win32com library is missing something that allows it
to work correctly in Windows 7.

Original issue reported on code.google.com by c.martin...@gmail.com on 13 Nov 2009 at 7:17

GoogleCodeExporter commented 8 years ago
The Python installed was ActivePython 2.5.1.1.  Perhaps an upgrade to 2.6 might 
fix this?

Original comment by c.martin...@gmail.com on 13 Nov 2009 at 7:21

GoogleCodeExporter commented 8 years ago
AutoItLibrary version 1.1, and the Calculator tests that it includes, now work 
on
Windows Vista Ultimate and Windows 7.

Original comment by c.martin...@gmail.com on 23 Apr 2010 at 7:39

GoogleCodeExporter commented 8 years ago

Original comment by c.martin...@gmail.com on 23 Apr 2010 at 8:06