首页 文章

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

提问于
浏览
-1

我正在尝试将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的奇怪之处在于导致此问题的原因 . 我试图用几个不同的python和机器人框架版本集安装autoit . 也尝试使用和不安装java(在某处读取migth导致麻烦) . 我甚至不知道为什么它试图创建K: . 在这一点上,我欢迎所有的帮助 .

Naali

1 回答

  • 2

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

相关问题