zoukankan      html  css  js  c++  java
  • AutoItLibrary安装走过的坑

    安装这个包的时候,你的robot framework基本能运行,在此不再多写了;

    在安装AutoItLibrary需要安装pythonwin32、AutoIt V3;根据系统选择相应的位数安装;下载的压缩包也要与系统的位数一致,不然会出错;

    安装AutoItLibrary报错

    D:Program FilesakeAutoItLibrary-1.1_x64>python setup.py install
    Don't think we need to unregister the old one...
    %SYSTEMROOT%system32
    egsvr32.exe /S D:Program FilesDailyToolsPython27Libsite-packagesAutoItLibrarylibAutoItX3.dll
    python D:Program FilesDailyToolsPython27Libsite-packageswin32comclientmakepy.py D:Program FilesDailyToolsPython27Libsite-packagesAutoItLibrarylibAutoItX3.dll
    python: can't open file 'D:Program': [Errno 2] No such file or directory
    Traceback (most recent call last):
      File "setup.py", line 81, in <module>
        subprocess.check_call(cmd)
      File "D:Program FilesDailyToolsPython27libsubprocess.py", line 190, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command 'python D:Program FilesDailyToolsPython27Libsite-packageswin32comclientmakepy.py D:Program FilesDailyToolsPython27Libsite-packagesAutoItLibrarylibAutoItX3.dll' returned non-zero exit status 2
    

     解决方法步骤:(注意所有的命令都是在管理员模式下进行) 

      1、在AutoItLibrary解压文件下找到setup.py,注释subprocess.check_call(cmd, shell=True),subprocess.check_call(cmd);不要忘记保存;

      2、用管理员打开cmd命令,进入AutoIt V3/AutoItX的安装目录,可以看到AutoItX3_x64.dll的文件;

          执行regsvr32 /u AutoItX3.dll这里不会有任何提示,应该表示注册成功;

          然后再执行反注册regsvr32 /u AutoItX3.dll如果成功,会弹窗提示反注册成功的

    3、管理员命令模式,进入AutoItLibrary的解压文件,执行 python setup.py install

    4、如果报的错还是和上面的问题一样,那么就反注册

          先执行regsvr32 /s AutoItX3.dll,在执行regsvr32 /u AutoItX3.dll

    5、再次进入AutoItLibrary的解压文件,执行 python setup.py install

    6、安装成功检验,输入pip list 如果有AutoItLibrary,表明你安装成功了

    参考文章:http://lijunwei1228ok.blog.163.com/blog/static/97383797201401010247599/

    安装这个也花了一些时间,找压缩包、下载安装包很不容易,因此为了方便大家学习,特意将安装包分享给大家

    我的是win10 64  python27

    百度网盘链接:https://pan.baidu.com/s/1GN3XLonLTTcBlN13bGb64Q   密码:7p1o

      

  • 相关阅读:
    java的基本数据类型有八种:
    BZOJ 1003 [ZJOI2006]物流运输trans
    BZOJ 1002 [FJOI2007]轮状病毒
    BZOJ 1001 [BeiJing2006]狼抓兔子
    FFT修正
    主席树修正
    COJ 0995 WZJ的数据结构(负五)区间操作
    COJ 1010 WZJ的数据结构(十) 线段树区间操作
    COJ 0999 WZJ的数据结构(负一)
    AC自动机修正
  • 原文地址:https://www.cnblogs.com/JuanZi-Sunny/p/9203639.html
Copyright © 2011-2022 走看看