AirtestProject / AirtestProject/Poco
Poco exception: hrpc.exceptions.TransportDisconnected at the end of the script
- Lingua principale
- Python
- Stelle
- 2k
- Fork
- 341
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**Bug**
Every time I'm running my simple script I'm getting an Exception at the end of the script, and the script works fine, but the exception looks strange.
```
Exception ignored in:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/hrpc/object_proxy.py", line 114, in __del__
File "/usr/local/lib/python3.8/dist-packages/hrpc/client.py", line 63, in evaluate
File "/usr/local/lib/python3.8/dist-packages/hrpc/transport/http.py", line 26, in send
hrpc.exceptions.TransportDisconnected: HTTPConnectionPool(host='127.0.0.1', port=17173): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))
```
**Steps To Reproduce**
Steps to reproduce the behaviour:
1. Write simple script with Android device and Reddit mobile app installed
```
import time
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
poco = AndroidUiautomationPoco()
poco.device.unlock()
poco.device.start_app('com.reddit.frontpage')
time.sleep(10)
avatar = poco('com.reddit.frontpage:id/inner_peeking_snoovatar')
avatar.click()
poco.device.snapshot('test.png')
```
2. Run this with Python:
```
python3 test.py
```
**Expected behavior**
The script should be executed without any error messages/exceptions
**python version:** `Python 3.8.5`
**poco version:** `pocoui==1.0.81`
**Smartphone:**
- Device: Xiaomi Readmi 8A
- OS: Android 10 QKQ1.191014.001 , MIUI 12.0.1
- OS on my host: Ubuntu 20.04
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.