Comments (7)
Try pip install -U pyopenssl 升级pyopenssl版本可行
from uiautomator2.
我用python2.7.5的好像碰到过这个问题,换个python3.6或python2.7.12就没问题了。
from uiautomator2.
这个也不完全是SSL的问题,和G-F-W有关,python版本更没多大关系,我们会考虑把这个so文件本地化或者放个稳定点地方
from uiautomator2.
Try pip install -U pyopenssl
Refs: psf/requests#4246
from uiautomator2.
这个问题 搞了我两天,最后通过抓包,请教大牛 找到了原因,是你本地的tsl协议版本过低,最低需要1.2版本的,我是1.1的,请求是 被拒了,最后的解决办法就是装个虚拟机,配上uiautomator2的环境,然后从那边对移动设备进行初始化,希望对你有帮助
from uiautomator2.
Ref: openatx-archive/atx-server#4
另外安装两个依赖
pip install pyOpenSSL>=0.13
pip install ndg-httpsclient>=0.3.2
from uiautomator2.
我遇到了该问题,我用pycharm执行init命令就可以成功,直接在命令行执行python -m uiautomator2 init就失败报ssl错误。
from uiautomator2.
Related Issues (20)
- 多台设备,USB没问题,Wifi就会随机几台设备出现adbutils.errors.AdbError: unknown host service
- MacOS M2芯片UIAutomator2无法init HOT 1
- uiautomator2/assets/app-uiautomator.apk' not found HOT 5
- (开头的xpath识别错误 HOT 2
- 使用.child("")后,原XPathSelector对象的xpath表达式被永久修改. HOT 3
- 手动Init时com.github.uiautomator报WindowManagerEventInjector is not supported HOT 2
- NAF控件的属性怎么获取 HOT 1
- Is there any automation running in the headless emulator? HOT 3
- app_current()方法在android13以上版本的适配问题 HOT 1
- 通过sibling获取的文本不会自动更新
- 不同手机不同的resourceId,怎么解决 HOT 1
- 获取的节点没有editable属性,而这个属性是辅助功能默认支持的。 HOT 1
- 鸿蒙Next 如何应对? HOT 3
- packaging.version.InvalidVersion: Invalid version HOT 3
- device_info缺失问题 HOT 1
- 无法查看页面元素结构 HOT 1
- 最新版本3.0.9使用d(text='xxx').click()无法找到元素,旧版本没问题 HOT 2
- 希望能同时判断多个组件中任一一个是否存在
- v3取消了通过wifi连接手机的功能,希望能给加回来 HOT 1
- 执行print(d.info)提示adbutils.errors.AdbError: cannot bind listener: cannot bind to 127.0.0.1:60941: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiautomator2.