Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

运行报错 #136

Open
dingshaohua-com opened this issue Jul 5, 2023 · 1 comment
Open

运行报错 #136

dingshaohua-com opened this issue Jul 5, 2023 · 1 comment

Comments

@dingshaohua-com
Copy link

dingshaohua-com commented Jul 5, 2023

PS C:\Users\boringsoft> pip3 install -U weditor
Collecting weditor
  Using cached weditor-0.6.8.tar.gz (2.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: tornado>=4.3 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (6.3.2)
Requirement already satisfied: six in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (1.16.0)
Requirement already satisfied: pillow in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (10.0.0)
Requirement already satisfied: logzero in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (1.7.0)
Requirement already satisfied: cached-property in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (1.5.2)
Requirement already satisfied: pywin32 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (306)
Requirement already satisfied: uiautomator2>=2.10.1 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (2.16.23)
Requirement already satisfied: facebook-wda>=1.0.5 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from weditor) (1.4.6)
Requirement already satisfied: requests>=2.9.1 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from facebook-wda>=1.0.5->weditor) (2.15.1)
Requirement already satisfied: retry in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from facebook-wda>=1.0.5->weditor) (0.9.2)
Requirement already satisfied: Deprecated~=1.2.6 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from facebook-wda>=1.0.5->weditor) (1.2.14)
Requirement already satisfied: whichcraft in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (0.6.1)
Requirement already satisfied: progress~=1.3 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (1.6)
Requirement already satisfied: adbutils>=1.2.3 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (1.2.11)
Requirement already satisfied: lxml>=4.3 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (4.9.2)
Requirement already satisfied: packaging~=20.3 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (20.9)
Requirement already satisfied: filelock<4.0,>=3.0.12 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from uiautomator2>=2.10.1->weditor) (3.12.2)
Requirement already satisfied: colorama in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from logzero->weditor) (0.4.6)
Requirement already satisfied: deprecation<3.0,>=2.0.6 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (2.1.0)
Requirement already satisfied: apkutils2<2.0,>=1.0.0 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (1.0.0)
Requirement already satisfied: dataclasses in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (0.6)
Requirement already satisfied: wrapt<2,>=1.10 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from Deprecated~=1.2.6->facebook-wda>=1.0.5->weditor) (1.15.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from packaging~=20.3->uiautomator2>=2.10.1->weditor) (3.1.0)
Requirement already satisfied: decorator>=3.4.2 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from retry->facebook-wda>=1.0.5->weditor) (5.1.1)
Requirement already satisfied: py<2.0.0,>=1.4.26 in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from retry->facebook-wda>=1.0.5->weditor) (1.11.0)
Requirement already satisfied: pyelftools in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from apkutils2<2.0,>=1.0.0->adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (0.29)
Requirement already satisfied: cigam in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from apkutils2<2.0,>=1.0.0->adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (0.0.3)
Requirement already satisfied: xmltodict in c:\users\boringsoft\appdata\local\programs\python\python311\lib\site-packages (from apkutils2<2.0,>=1.0.0->adbutils>=1.2.3->uiautomator2>=2.10.1->weditor) (0.13.0)
Building wheels for collected packages: weditor
  Building wheel for weditor (pyproject.toml) ... done
  Created wheel for weditor: filename=weditor-0.6.8-py3-none-any.whl size=1588980 sha256=0e8899371bafb44beda225b11b443f528cc6b37098e7d4583d495fdd1b7f5e08
  Stored in directory: c:\users\boringsoft\appdata\local\pip\cache\wheels\12\f1\17\ae5c76ccf65be8e894d1c556e8b9619dbfa6d6de39419756e1
Successfully built weditor
Installing collected packages: weditor
Successfully installed weditor-0.6.8
PS C:\Users\boringsoft> weditor
Traceback (most recent call last):
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\__init__.py", line 27, in <module>
    from . import urllib3
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\__init__.py", line 8, in <module>
    from .connectionpool import (
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\connectionpool.py", line 29, in <module>
    from .connection import (
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\connection.py", line 39, in <module>
    from .util.ssl_ import (
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\util\__init__.py", line 3, in <module>
    from .connection import is_connection_dropped
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\util\connection.py", line 3, in <module>
    from .wait import wait_for_read
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\util\wait.py", line 1, in <module>
    from .selectors import (
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\urllib3\util\selectors.py", line 14, in <module>
    from collections import namedtuple, Mapping
ImportError: cannot import name 'Mapping' from 'collections' (C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\collections\__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Scripts\weditor.exe\__main__.py", line 4, in <module>
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\weditor\__main__.py", line 26, in <module>
    import requests
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\__init__.py", line 60, in <module>
    from . import utils
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\utils.py", line 26, in <module>
    from ._internal_utils import to_native_string
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\_internal_utils.py", line 11, in <module>
    from .compat import is_py2, builtin_str, str
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\compat.py", line 11, in <module>
    from .packages import chardet
  File "C:\Users\boringsoft\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\packages\__init__.py", line 29, in <module>
    import urllib3
ModuleNotFoundError: No module named 'urllib3'
@jeremyru
Copy link

jeremyru commented Jul 9, 2023

安装urllib3,版本最好低一点1.24.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants