openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.18k stars 1.35k forks source link

app_install方法入参是链接的话报错 #986

Open Xiaojun0822 opened 1 month ago

Xiaojun0822 commented 1 month ago

uiautomator2版本:3.1.0

tmpfile path: /var/folders/c0/4g8jx1611w5fg28jp5hxn2b40000gp/T/tmpt9qepbo2.apk push to /data/local/tmp/tmp-1717058926461.apk 2.2% 2.9 MB/s [3.0 MB/135.7 MB] Traceback (most recent call last): File "/Users/wangxiaojun/Desktop/github/uiautomator2/test.py", line 23, in d.app_install('https://xxxxxx.apk') File "/Users/wangxiaojun/Desktop/github/uiautomator2/uiautomator2/init.py", line 711, in app_install self.adb_device.install(data) File "/Users/wangxiaojun/opt/miniconda3/envs/zpad_u2/lib/python3.10/site-packages/adbutils/install.py", line 86, in install self.sync.push(r, dst) File "/Users/wangxiaojun/opt/miniconda3/envs/zpad_u2/lib/python3.10/site-packages/adbutils/sync.py", line 109, in push return self._push_file(src, dst, mode, check) File "/Users/wangxiaojun/opt/miniconda3/envs/zpad_u2/lib/python3.10/site-packages/adbutils/sync.py", line 140, in _push_file c.conn.send(b"DATA" + struct.pack("<I", len(chunk))) BrokenPipeError: [Errno 32] Broken pipe