Robotframework 安装机器人框架的AutoIt库-Win 10
我正在尝试安装autoIt库,以便与robotFramework一起使用,但我一直遇到以下错误:Robotframework 安装机器人框架的AutoIt库-Win 10,robotframework,autoit,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):
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
不要认为我们需要注销旧版本。。。
%SYSTEMROOT%\system32\regsvr32.exe/S C:\xxx xxx\Python27\Lib\site packages\AutoItLibrary\Lib\AutoItX3.dll
回溯(最近一次呼叫最后一次):
文件“setup.py”,第70行,在
子进程检查调用(cmd,shell=True)
文件“C:\Python27\lib\subprocess.py”,第504行,在check\u调用中
引发被调用的进程错误(retcode,cmd)
subprocess.CalledProcessError:命令“%SYSTEMROOT%\system32\regsvr32.exe/S C:\xxx xxx\Python27\Lib\site packages\AutoItLibrary\Lib\AutoItX3.dll”返回非零退出状态1
我已经在stackoverflow上尝试了目前为止找到的所有解决方案:
- 以管理员身份运行cmd
- 设置HOMEDRIVE环境变量
- 手动运行此命令%SYSTEMROOT%\system32\regsvr32.exe/S C C:\Python27\Lib\site packages\AutoItLibrary\Lib\AutoItX3.dll(它不会抛出 (错误)
- 使用固定设置
py脚本:
(这显示了此错误:
subprocess.CalledProcessError:Command'python'C:\xxx xxx\Python27\Lib\site packages\win32com\client\makepy.py”“C:\xxx xxx\Python27\Lib\site packages\autoitlib\AutoItX3.dll”“返回非零退出状态1
谢谢!您是否尝试过将AutoIt库放在不包含空格的目录中?可能没有问题,但可能值得一试…谢谢您的回答。是的,我刚刚尝试过,但它仍然抛出:命令“python”C:\Python27\Lib\site packages\win32com\client\makepy.py”“C:\Python27\Lib\site packages\AutoItLibrary\Lib\AutoItX3.dll”返回非零退出状态1我认为它不起作用,但我偶尔会遇到命令解析器将空格解释为单独命令的地方,并认为您在这种情况下可能会很幸运。抱歉-我没有其他想法:(是的,它可能会有工作,谢谢!希望我能在某个时候找到解决方案。。。