cmd
- Dominant language
- Python
- Stars
- 36.9k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
Microsoft Windows [版本 10.0.19045.3448]
(c) Microsoft Corporation。保留所有权利。
F:\软件\MockingBird-main(1)\MockingBird-main>webrtcvad pip install webrtcvad-wheels\
'webrtcvad' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
F:\软件\MockingBird-main(1)\MockingBird-main>pip install webrtcvad-wheels
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: webrtcvad-wheels in c:\users\mr\appdata\local\programs\python\python310\lib\site-packages (2.0.11.post1)
F:\软件\MockingBird-main(1)\MockingBird-main>python web.py
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ F:\软件\MockingBird-main(1)\MockingBird-main\web.py:17 in launch │
│ │
│ 14 │ # This is required to resolve the opyrator path │
│ 15 │ sys.path.append(os.getcwd()) │
│ 16 │ │
│ > 17 │ from control.mkgui.base.ui.streamlit_ui import launch_ui │
│ 18 │ launch_ui(port) │
│ 19 │
│ 20 if __name__ == "__main__": │
│ │
│ ┌── locals ───┐ │
│ │ port = 8080 │ │
│ └─────────────┘ │
│ │
│ F:\软件\MockingBird-main(1)\MockingBird-main\control\mkgui\base\__init__.py:2 in │
│ │
│ 1 │
│ > 2 from .core import Opyrator │
│ 3 │
│ │
│ F:\软件\MockingBird-main(1)\MockingBird-main\control\mkgui\base\core.py:6 in │
│ │
│ 3 import re │
│ 4 from typing import Any, Callable, Type, Union, get_type_hints │
│ 5 │
│ > 6 from pydantic import BaseModel, parse_raw_as │
│ 7 from pydantic.tools import parse_obj_as │
│ 8 │
│ 9 │
│ │
│ ┌─────────────────────────────────────────── locals ───────────────────────────────────────────┐ │
│ │ Any = typing.Any │ │
│ │ Callable = typing.Callable │ │
│ │ get_type_hints = │ │
│ │ importlib = │ │
│ │ Type = typing.Type │ │
│ │ Union = typing.Union │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ C:\Users\MR\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\__init__.py:210 │
│ in __getattr__ │
│ │
│ 207 def __getattr__(attr_name: str) -> object: │
│ 208 │ dynamic_attr = _dynamic_imports.get(attr_name) │
│ 209 │ if dynamic_attr is None: │
│ > 210 │ │ return _getattr_migration(attr_name) │
│ 211 │ │
│ 212 │ from importlib import import_module │
│ 213 │
│ │
│ ┌─────────── locals ────────────┐ │
│ │ attr_name = 'parse_raw_as' │ │
│ │ dynamic_attr = None │ │
│ └───────────────────────────────┘ │
│ │
│ C:\Users\MR\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_migration.py:295 │
│ in wrapper │
│ │
│ 292 │ │ │ │ 'for more details.' │
│ 293 │ │ │ ) │
│ 294 │ │ if import_path in REMOVED_IN_V2: │
│ > 295 │ │ │ raise PydanticImportError(f'`{import_path}` has been removed in V2.') │
│ 296 │ │ globals: Dict[str, Any] = sys.modules[module].__dict__ │
│ 297 │ │ if name in globals: │
│ 298 │ │ │ return globals[name] │
│ │
│ ┌────────────────────────────── locals ───────────────────────────────┐ │
│ │ import_path = 'pydantic:parse_raw_as' │ │
│ │ module = 'pydantic' │ │
│ │ name = 'parse_raw_as' │ │
│ │ PydanticImportError = │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
PydanticImportError: `pydantic:parse_raw_as` has been removed in V2.
For further information visit https://errors.pydantic.dev/2.3/u/import-error
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with `python web.py`, then inspect `web.py` and `control/mkgui/base/core.py`, especially the Pydantic imports shown in the traceback. Done means the application gets past startup without raising `PydanticImportError` for `parse_raw_as`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100