人之初 发表于 2014-7-23 11:44:14

执行monkeyrunner脚本时,出现如下错误,请问大家该如何解决?

D:\android sdk\sdk\tools>monkeyrunner 7sanity.py
140723 11:37:24.086:S Scri
pt terminated due to an exception
140723 11:37:24.086:S Synta
xError: ("no viable alternative at character '\uff08'", ('D:\\android sdk\\sdk\\
tools\\7sanity.py', 67, 11, 'device.type\xef\xbc\x88"1"\xef\xbc\x89\n'))

140723 11:37:24.086:S
at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92)
140723 11:37:24.086:S
at org.python.core.ParserFacade.parse(ParserFacade.java:184)
140723 11:37:24.086:S
at org.python.core.Py.compile_flags(Py.java:1731)
140723 11:37:24.086:S
at org.python.core.__builtin__.execfile_flags(__builtin__.java:514)
140723 11:37:24.086:S
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
140723 11:37:24.086:S
at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116)
140723 11:37:24.086:S
at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77)

人之初 发表于 2014-7-24 10:18:08

升级了一下python,从2.7到3.3,还是一样的问题。

人之初 发表于 2014-7-24 11:19:27

哈哈,问题解决,脚本里的括号用成了中文的:funk:
页: [1]
查看完整版本: 执行monkeyrunner脚本时,出现如下错误,请问大家该如何解决?