运行python -m uiautomator2 init报错AttributeError: module 'collections' has no attribute 'MutableMapping'问题,已解决
报错信息:
Traceback (most recent call last): File "E:\Carte\BB\17 - Site Leadership\alte\Ionel Balauta\Aryeht\Task 1 - Traduce tot site-ul\Doar Google Web\Andreea\Meditatii\Sedinta 9 (2022) (EMAIL)\BEBE-PARSING-Python (fara redenumire 2).py", line 1, in <module> import requests File "C:\Users\Castel\AppData\Roaming\Python\Python310\site-packages\requests\__init__.py", line 63, in <module> from . import utils File "C:\Users\Castel\AppData\Roaming\Python\Python310\site-packages\requests\utils.py", line 27, in <module> from .cookies import RequestsCookieJar, cookiejar_from_dict File "C:\Users\Castel\AppData\Roaming\Python\Python310\site-packages\requests\cookies.py", line 172, in <module> class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping'
解决方法:
1、执行pip install uplink
2、重新执行python -m uiautomator2 init
3、无报错信息,执行成功