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

      

  • 相关阅读:
    4.3.4 查询语法基础(2)
    4.3.4 查询语法基础(1)
    一个存储过程调用另一个存储过程 (2009-12-29 13:57:05)
    4.3.3 基于行的操作
    4.3.2 基于集合的操作
    4.3 数据操纵语言(DML)
    4.2 从哪儿开始
    子查询、联合查询和连接查询
    4.1 SQL的本质
    本书说明
  • 原文地址:https://www.cnblogs.com/JuanZi-Sunny/p/9203639.html
Copyright © 2011-2022 走看看