我正在尝试将autoit安装到robot框架中,但却被最新的错误消息难住了。在
目前我已安装(所有内容均为32位):
我要安装的AutoIt是AutoItLibrary-1.1 (http://code.google.com/p/robotframework-autoitlibrary/)
我把它解压到C:\的文件夹中,我以管理员的身份运行命令行,并给出命令“python”设置.py安装”。在
它开始安装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:\错误就是导致这个问题的原因。我尝试过用几个不同的python&robot框架版本集安装autoit。在安装和不安装java的情况下也进行了尝试(在可能引起麻烦的地方阅读)。我甚至不知道它为什么要创建K:。在这一点上,我欢迎所有我能得到的帮助。在
纳阿里
问题是您的环境变量
HOMEDRIVE
被设置为K:
。如果你在第88行设置.py,您将看到destPath
被设置为HOMEDRIVE:\RobotFramework\Extensions\AutoItLibrary
。所以,只要重写环境变量HOMEDRIVE
到C:
,它就可以工作了。在相关问题 更多 >
编程相关推荐