AutoITLibrary turn red in RIDE when installed successful.

3,498 views
Skip to first unread message

Phuoc Ha

unread,
Nov 25, 2014, 6:12:11 AM11/25/14
to robotframe...@googlegroups.com
Hi everyone,

I tried install Robotframework-AutoITLibrary by follow this article:
http://www.testingnotes.eu/howto-install-robot-framework-windows-7-64/

C:\AutoItLibrary-1.1>python setup.py install
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python C:\Python27\Lib\site-packages\win32com\client\makepy.py C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
Generating to C:\Python27\lib\site-packages\win32com\gen_py\F8937E53-D444-4E71-9275-35B64210CC3Bx0x1x0.py
Building definitions from type library...
Generating...
Importing module
running install
running build
running build_py
running install_lib
running install_data
running install_egg_info
Removing C:\Python27\Lib\site-packages\AutoItLibrary-1.1-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\AutoItLibrary-1.1-py2.7.egg-info


I installed successfully, but when I import the library name "AutoITLibrary" to use in RIDE, the RIDE not recognize AutoITLibrary that I imported.
It's turn red in attach file below.


Guy Kisel

unread,
Nov 25, 2014, 7:44:51 PM11/25/14
to robotframe...@googlegroups.com
In RIDE's menu options, there's a "View RIDE Log" option that should show you a stack trace from the import failure.

Phuoc Ha

unread,
Nov 26, 2014, 12:30:06 AM11/26/14
to robotframe...@googlegroups.com
Hi Kisel,

I have selected "View RIDE Log" in RIDE's menu with content bellow:

20141126 09:45:51.541 [INFO]: Started RIDE 1.3 using python version 2.7.8 with wx version 2.8.12.1 in win32.

20141126 11:45:17.694 [WARN]: Importing test library "AutoItLibrary" failed

Traceback (most recent call last):
Creating an instance of the test library 'AutoItLibrary' with no arguments failed: com_error: (-2147221164, 'Class not registered', None, None)
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\AutoItLibrary\__init__.py", line 81, in __init__
    self._AutoIt = win32com.client.Dispatch(u"AutoItX3.Control")
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
  File "C:\Python27\lib\site-packages\robotide\spec\librarymanager.py", line 76, in _fetch_keywords
    return get_import_result(path, library_args)
  File "C:\Python27\lib\site-packages\robotide\spec\libraryfetcher.py", line 20, in get_import_result
    lib = TestLibrary(path, args)
  File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 41, in TestLibrary
    lib.create_handlers()
  File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 125, in create_handlers
    self._libinst = self.get_instance()
  File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 191, in get_instance
    self._libinst = self._get_instance()
  File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 199, in _get_instance
    self._raise_creating_instance_failed()
  File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 254, in _raise_creating_instance_failed
    "failed: %s\n%s" % (self.name, args, msg, details))



I think I have installed correctly by the way:  I open cmd, cd to folder "C:\AutoItLibrary-1.1", then I type & enter the command "python setup.py install".
The installation successful without any error, but when I import "AutoITLibrary" in my test suite, it turn red, you see the warning above.

I have tried some way install:
use pip:
pip install robotframework-autoitlibrary

Please help, I don't know how to solve this issue.
Thanks you!

Taylor, Martin

unread,
Nov 26, 2014, 9:01:30 AM11/26/14
to phuo...@gmail.com, robotframe...@googlegroups.com

I’m guessing that you’re on Windows 7 or 8 and that for some reason the UAC prompt during the AutoIt install either didn’t work, or was not allowed. Open a CMD window as Admin and run the AutoIt “python setup.py install” again from that elevated permissions window.

 

Cheers,

Martin

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Phuoc Ha

unread,
Nov 27, 2014, 4:42:38 AM11/27/14
to robotframe...@googlegroups.com, phuo...@gmail.com
Hi Kisel & Martin,

I found the issue that AutoITLibrary can run on my machine,
Because I using win 7 x64, then that package can install, but can't run. I found a version of AutoITLibrary x64 for win7 on China site.
If you install by this package, you can import AutoItlibrary in RIDE an run your suite.

Here I attach file for anyone have a problem like me :D

Thanks and Regards,
Phuoc Ha.
AutoItLibrary-1.1_x64.rar

robotfr...@gmail.com

unread,
Aug 18, 2017, 8:22:38 AM8/18/17
to robotframework-users
Hi Phuoc Ha 

I am trying from site you have mentioned but not still i could see Imported AutoITLibrary in RIDE in red.

Could you please mention detail steps for installing it?

Thanks in Advance
Reema

Phuoc Ha

unread,
Aug 18, 2017, 9:21:13 PM8/18/17
to robotframework-users
Hi Reema,

I guess that you are using window x68,
for the windows x64, please download my attached file at the comment above and try install by this way:
1. Extract file
2. Open command line by admin role, then goes to this folder extracted
3. Type this command to install: python setup.py install

For the window x86, you need download AutoITLibrary x86 and do the similar command to install.

Cheer,

YS Kumar

unread,
Aug 23, 2017, 2:33:45 AM8/23/17
to robotframework-users
HI,

Can you please  follow this process

Precondition :Check  OS Win 32/64 bit  according toi that download builds

Download pythonWin32 com
Download Wxpython  for 2.7
Download AutoIT library and install
Mention the path of AutoITLibrary in python path

i hope this help




On Tuesday, November 25, 2014 at 4:42:11 PM UTC+5:30, Phuoc Ha wrote:
Reply all
Reply to author
Forward
0 new messages