将autoit安装到机器人框架时出错

时间:2013-11-11 10:58:38

标签: python installation autoit robotframework

我正在尝试将autoit安装到机器人框架,但却被最新的错误消息所困扰。

目前我已经安装了(一切都是32位):

  • Python 2.7.6
  • setuptools 1.3.2
  • pip 1.4.1
  • 机器人框架2.8.1
  • 机器人框架 - 骑1.2.2
  • selenium2library 1.4.0
  • wxPython 2.8.12.1(unicode)
  • pywin32(218.win32-py2.7)

AutoIt我试图安装的是AutoItLibrary-1.1 (http://code.google.com/p/robotframework-autoitlibrary/

我把它解压缩并在C:\中的文件夹中,我正在运行命令行作为管理员并给出命令“python setup.py install”。

它开始安装autoit但最后运行在奇怪的错误消息中。到目前为止,我还没有在因特网上找到任何可能的原因,也没有在我的电脑上找到任何可以理解的原因。

命令行上的内容:

C:\AutoItLibrary-1.1>python setup.py install
%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python C:\Python27\Lib\site-packages\win32com\client\makepy.py C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
Generating to C:\Python27\lib\site-packages\win32com\gen_py\F8937E53-D444-4E71-9275-35B64210CC3Bx0x1x0.py
Building definitions from type library...
Generating...
Importing module
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\AutoItLibrary
copying src\AutoItLibrary\Counter.py -> build\lib\AutoItLibrary
copying src\AutoItLibrary\Logger.py -> build\lib\AutoItLibrary
copying src\AutoItLibrary\__init__.py -> build\lib\AutoItLibrary
running install_lib
copying build\lib\AutoItLibrary\Counter.py -> C:\Python27\Lib\site-packages\AutoItLibrary
copying build\lib\AutoItLibrary\Logger.py -> C:\Python27\Lib\site-packages\AutoItLibrary
copying build\lib\AutoItLibrary\__init__.py -> C:\Python27\Lib\site-packages\AutoItLibrary
byte-compiling C:\Python27\Lib\site-packages\AutoItLibrary\Counter.py to Counter.pyc
byte-compiling C:\Python27\Lib\site-packages\AutoItLibrary\Logger.py to Logger.pyc
byte-compiling C:\Python27\Lib\site-packages\AutoItLibrary\__init__.py to __init__.pyc
running install_data
creating K:\
error: could not create 'K:\': The system cannot find the path specified

正如您所看到的,创建K:\ error的奇怪之处在于导致此问题的原因。我试过安装autoit与几个不同的python&机器人框架版本集。也尝试使用和不安装java(在某处读取migth导致麻烦)。我甚至不知道为什么它试图创建K:。在这一点上,我欢迎所有的帮助。

Naali

1 个答案:

答案 0 :(得分:2)

问题是您的环境变量HOMEDRIVE设置为K:。如果您查看setup.py的第88行,您会看到destPath设置为HOMEDRIVE:\RobotFramework\Extensions\AutoItLibrary。因此,只需将环境变量HOMEDRIVE覆盖为C:即可。