报错信息:
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、无报错信息,执行成功
- 39 AttributeError MutableMapping uiautomator2 collections39 attributeerror mutablemapping uiautomator2 39 quot attributeerror attribute 39 attributeerror attribute nonetype 39 attributeerror antialias attribute 39 attributeerror tensorflow attribute 39 decode query attributeerror 39 attributeerror attribute copy_src 39 backend_interagg figurecanvasagg attributeerror 39 attributeerror attribute深度 39 attributeerror outputbuffer testresult