鱼C论坛

 找回密码
 立即注册
查看: 2317|回复: 1

[求助中] python+uiautomator報錯問題

[复制链接]
发表于 2017-8-20 15:23:31 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 tobasi 于 2017-8-20 15:28 编辑

各位編程的前輩好:

目前遇到一個問題,目前寫了一個簡單的測試腳本,當腳本在手機運行完後沒報錯,
打算在跑一次腳本此時第二次運行之後就會一直無法與手機連上,安卓6.0 & 7.0每次都會發生
但在安卓4.0&5.0似乎沒這問題


環境:
系統win7 64位元
python 3.6


錯誤訊息如下:
error log:
traceback (most recent call last):
File "E:\trial_course.py", line 83, in
trail_login()
File "E:\trial_course.py", line 10, in trail_login
if(d(text='HERO')):
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\uiautomator_init_.py", line 1151, in len
return self.count
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\uiautomator_init_.py", line 1148, in count
return self.jsonrpc.count(self.selector)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\uiautomator_init_.py", line 426, in wrapper
return JsonRPCMethod(url, method, timeout, False)(*args, **kwargs)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\uiautomator_init.py", line 433, in wrapper
return method_obj(*args, **kwargs)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\uiautomator_init.py", line 116, in call
timeout=self.timeout)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\poolmanager.py", line 321, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\util\retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\packages\six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\site-pac
kages\urllib3\connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\http\cli
ent.py", line 1331, in getresponse
response.begin()
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\http\cli
ent.py", line 297, in begin
version, status, reason = self._read_status()
File "C:\Users\misawa21\AppData\Local\Programs\Python\Python36-32\lib\http\cli
ent.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Re
mote end closed connection without response',))
谷歌跟百度過了,但始終還不知道確切問題點,只知道是服務無響應
但要如何解決~希望知道的各位大神能不吝告知~! 謝謝
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2017-8-20 20:50:56 | 显示全部楼层
你在编什么?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-12-23 04:59

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表