安装AutoIt Library for Robot Framework - Win 10

时间:2017-05-31 14:48:45

标签: robotframework autoit

我正在尝试安装autoIt库以将其与robotFramework一起使用,但我一直在纠结这个错误:

Don't think we need to unregister the old one...
    %SYSTEMROOT%\system32\regsvr32.exe /S C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
    Traceback (most recent call last):
      File "setup.py", line 70, in <module>
        subprocess.check_call(cmd, shell=True)
      File "C:\Python27\lib\subprocess.py", line 504, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '%SYSTEMROOT%\system32\regsvr32.exe /S C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll' returned non-zero exit status 1

我已经尝试了到目前为止在stackoverflow上找到的所有解决方案:

  • 以管理员身份运行cmd
  • 设置HOMEDRIVE环境变量
  • 手动运行此命令%SYSTEMROOT%\ system32 \ regsvr32.exe / S C. C:\ Python27 \ Lib \ site-packages \ AutoItLibrary \ lib \ AutoItX3.dll(不抛出 误差)
  • 使用固定设置 py脚本:https://github.com/qitaos/robotframeworkautoitlibrary/issues/30 (表示此错误:subprocess.CalledProcessError: Command 'python "C:\xxx xxx\Python27\Lib\site-packages\win32com\client\makepy.py" "C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll"' returned non-zero exit status 1

有没有人有其他解决方案? (如果不是我会选择SikuliX,即使AutoIt是Win自动化的最佳选择)

谢谢!

0 个答案:

没有答案