在 Windows 8 上设置 AndroidViewClient 会引发 Raise AttributeError

Setting up AndroidViewClient on Windows 8 gives Raise AttributeError

我已经从 https://github.com/dtmilano/AndroidViewClient 下载了 .zip 版本 5.1.1 . 我添加了 ANDROID_VIEW_CLIENT_HOME=/path/to/AndroidViewClient 和 PYTHONPATH=/path/to/AndroidViewClient/src 。

现在当我 运行 python test-connect-to-device.py 时,我得到了 raise AttributeError

您使用的 Python 3 至 运行 代码似乎只能在 Python 2 中使用。您必须安装 Python 2 和 运行 你的脚本使用 Python 2 来解决这个问题。

例如代码

name = "blah"
raise AttributeError, name

runs and raises an AttributeError on Python 2 but raises a SyntaxError and fails to compile on Python 3.