简体   繁体   English

为 Robot 框架安装 AutoIt

[英]Installing AutoIt for Robot framework

I am trying to install the AutoIt library for Robot Framework, I've tried using the pip command command pip install robotframework-autoitlibrary but that didn't work.我正在尝试为 Robot Framework 安装 AutoIt 库,我尝试过使用 pip 命令命令pip install robotframework-autoitlibrary但这没有用。 I then downloaded the AutoIt library and installed it but I can't open it.然后我下载了AutoIt 库并安装了它,但我无法打开它。

Why can't I use the library?为什么我不能使用图书馆?

There are two reasons that your install may not be working correctly:您的安装可能无法正常工作有两个原因:
1. You haven't installed ActivePython , which I don't think you have. 1. 你还没有安装ActivePython ,我认为你没有。
2. You need the 32bit version of Python installed or AutoIt won't actually work . 2. 您需要安装 32 位版本的Python,否则 AutoIt 将无法实际工作

If these fixes don't work, comment and I will try to help further如果这些修复不起作用,请发表评论,我会尽力提供进一步帮助

Step1.第1步。 Please make sure you have installed autoit-v3-setup.exe,请确保您已安装 autoit-v3-setup.exe,
pywin32-220.win-amd64-py2.7.exe. pywin32-220.win-amd64-py2.7.exe。
Step2.第2步。 You have to run "python setup.py install" in a Administrator cmd您必须在管理员cmd 中运行“python setup.py install”
while installing AutoItLibrary-1.1.在安装 AutoItLibrary-1.1 时。
Step.3 If you meet any porblem, please add the error message, that will be very useful. Step.3如果您遇到任何问题,请添加错误信息,这将非常有用。
Hope this will help you.希望这会帮助你。

I had the same issue but resolved by following the below steps.我遇到了同样的问题,但按照以下步骤解决了。

  1. Download the file from below path " https://pypi.org/project/robotframework-autoitlibrary/#files "从以下路径下载文件“ https://pypi.org/project/robotframework-autoitlibrary/#files
  2. Unzip and run the "setup.py" file from the command prompt as administrator by using the below command "python setup.py install".使用以下命令“python setup.py install”从命令提示符中以管理员身份解压缩并运行“setup.py”文件。
  3. Open your ride editor and import the library with the name "AutoItLibrary".打开您的骑行编辑器并导入名为“AutoItLibrary”的库。 It worked for me with below versions以下版本对我有用
robotframework==3.1.2
robotframework-autoitlibrary==1.2.5
robotframework-seleniumlibrary==4.3.0
robotframework-ride==1.7.4.1
selenium 3.141.0

我在 Windows 上安装支持 python 3 的最新版本 1.2.2 时遇到了一些麻烦,这是由于路径中的空格作为程序文件: https : //code.google.com/archive/p/robotframework-autoitlibrary/issues /30我希望它对某人有所帮助,修复基本上是路径周围的引号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM