我有测试脚本:
*** Settings ***
Library AutoItLibrary
*** Variables ***
*** Test Cases ***
Launch HTOOL UI
AutoItLibrary.Run MyApp.exe C:\\MyFolder\\AppFolder
Robot Framework返回错误No keyword with name 'AutoItLibrary.Run' found.
当我安装安装程序.pu对于AutoIt,我得到了这些日志:
C:\My Files\AutoItLibrary-1.1>python setup.py install Don't think we need to unregister the old one... %SYSTEMROOT%\system32\regsvr32.exe /S C:\Python35\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll python C:\Python35\Lib\site-packages\win32com\client\makepy.py
C:\Python35\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll Generating to C:\Python35\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 running install_lib byte-compiling C:\Python35\Lib\site-packages\AutoItLibrary\Logger.py to Logger.c python-35.pyc File "C:\Python35\Lib\site-packages\AutoItLibrary\Logger.py", line 28 print '%s %s' % (level, message) ^ SyntaxError: invalid syntax
byte-compiling C:\Python35\Lib\site-packages\AutoItLibrary__init__.py to init.cpython-35.pyc File "C:\Python35\Lib\site-packages\AutoItLibrary__init__.py", line 269 raise Exception, "Failed to run %s" % cmd ^ SyntaxError: invalid syntax
running install_data running install_egg_info Removing C:\Python35\Lib\site-packages\AutoItLibrary-1.1-py3.5.egg-info Writing C:\Python35\Lib\site-packages\AutoItLibrary-1.1-py3.5.egg-info
我想征求你对我为什么会出错的意见。在
尝试安装以管理员身份运行。在
我试着安装普通的命令我也面临同样的问题。当我尝试使用cmd作为管理员运行安装时,这个问题得到了解决。在
相关问题 更多 >
编程相关推荐