Closed accjiyun closed 1 year ago
复现不出来
(py310) ~ ➤ python
Python 3.10.8 (main, Nov 4 2022, 08:45:18) [Clang 12.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uiautomator2 as u2
>>> from apkutils2.axml.axmlparser import AXML
>>> u2.version.__version__
'2.16.18'
>>>
Reopen if still exists
项目中锁定了版本uiautomator2==2.16.18,在docker容器中运行的项目,较高概率出现
ModuleNotFoundError: No module named 'apkutils2.axml.axmlparser'
,换了多个镜像源依然如此登陆机器实例,查看虚拟环境文件:
正常时应为:
因为 apkutils2 是fork在 https://github.com/codeskyblue/apkutils2下
@codeskyblue 麻烦抽空看一下,谢谢!