openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.67k stars 1.42k forks source link

代码提示错误:Invalid version: '' #929

Closed dreamer70521 closed 7 months ago

dreamer70521 commented 11 months ago

版本:uiautomator2==2.16.25

错误提示:Invalid version: ''

错误定位:init.py文件第733行返回None,导致第744行参数为空,执行packaging.version.parse("")的时候会报这个错误

dreamer70521 commented 11 months ago

找到了解决方案:packaging的版本是23.2会报这个错误,换成20.9可以正常运行

codeskyblue commented 7 months ago

fixed

vinhomesoceanpark commented 7 months ago

I am also suffering from this condition. I have downgraded the packaging to 21.3 or downgraded uiautomator2 but the problem still persists. Hope you check it out