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

      

  • 相关阅读:
    vscode 整理————开篇之力(一)
    重学c#系列——datetime 和 datetimeoffset[二十一]
    重新点亮shell————什么是shell[一]
    重新整理 .net core 实践篇——— 权限中间件源码阅读[四十六]
    为什么构建容器需要Namespace?
    基于Windows Mobile 5.0的掌上天气预报设计
    使用.NE平台调用服务访问非托管 DLL 中的函数
    .NET Framework 3.0 RC1 开发环境构建
    ASP.NET未处理异常的处理
    基于Silverlight的Windows Phone 推箱子程序开发
  • 原文地址:https://www.cnblogs.com/JuanZi-Sunny/p/9203639.html
Copyright © 2011-2022 走看看