• 使用荣耀 9 atx-agent 总是装不上,换 oppo 的就好了

  • python -m uiautomator2 init 这步会报错,装不了包 - 华为荣耀 9。求问!

    [?25h2018-08-09 22:26:01,530 - main.py:143 - INFO - app-uiautomator.apk(1.1.0) installing ...
    Traceback (most recent call last):
    File "F:\Python2.7.15\lib\runpy.py", line 174, in run_module_as_main
    "
    main", fname, loader, pkg_name)
    File "F:\Python2.7.15\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    .py", line 356, in
    main()
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    .py", line 352, in main
    fire.Fire(MyFire)
    File "F:\Python2.7.15\lib\site-packages\fire\core.py", line 127, in Fire
    component_trace = _Fire(component, args, context, name)
    File "F:\Python2.7.15\lib\site-packages\fire\core.py", line 366, in _Fire
    component, remaining_args)
    File "F:\Python2.7.15\lib\site-packages\fire\core.py", line 542, in _CallCallable
    result = fn(*varargs, **kwargs)
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    .py", line 273, in init
    ignore_apk_check)
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    .py", line 291, in _init_with_serial
    ins.install_uiautomator_apk(apk_version, reinstall)
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    .py", line 144, in install_uiautomator_apk
    path = cache_download(app_url)
    File "F:\Python2.7.15\lib\site-packages\uiautomator2__main
    _.py", line 73, in cache_download
    r = requests.get(url, stream=True)
    File "F:\Python2.7.15\lib\site-packages\requests\api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
    File "F:\Python2.7.15\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
    File "F:\Python2.7.15\lib\site-packages\requests\sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
    File "F:\Python2.7.15\lib\site-packages\requests\sessions.py", line 644, in send
    history = [resp for resp in gen] if allow_redirects else []
    File "F:\Python2.7.15\lib\site-packages\requests\sessions.py", line 222, in resolve_redirects
    **adapter_kwargs
    File "F:\Python2.7.15\lib\site-packages\requests\sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
    File "F:\Python2.7.15\lib\site-packages\requests\adapters.py", line 513, in send
    raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: HTTPSConnectionPool(host='github-production-release-asset-2e65be.s3.amazonaws.com', port=443): Max retries exceeded with url: /53296967/04557cd4-6a6f-11e8-8756-b86d54a7b2c7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180809T142705Z&X-Amz-Expires=300&X-Amz-Signature=158a23651683c57e96afcd3f463272859a66e400c0bb63f473516c9dcaae2715&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dapp-uiautomator.apk&response-content-type=application%2Fvnd.android.package-archive (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 10060] ',))