Skip to content

pydantic.errors.PydanticImportError: pydantic:parse_raw_as has been removed in V2. #108

@stellabawerte49836

Description

@stellabawerte49836

Describe the bug:
I started the UI, but...

line 264-280
C:\Users\quanv>opyrator start-ui
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\quanv\AppData\Local\Programs\Python\Python313\Scripts\opyrator.exe\__main__.py", line 4, in <module>
    from opyrator._cli import cli
  File "C:\Users\quanv\AppData\Local\Programs\Python\Python313\Lib\site-packages\opyrator\__init__.py", line 6, in <module>
    from .core import Opyrator
  File "C:\Users\quanv\AppData\Local\Programs\Python\Python313\Lib\site-packages\opyrator\core.py", line 6, in <module>
    from pydantic import BaseModel, parse_raw_as
  File "C:\Users\quanv\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydantic\__init__.py", line 426, in __getattr__
    return _getattr_migration(attr_name)
  File "C:\Users\quanv\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydantic\_migration.py", line 302, in wrapper
    raise PydanticImportError(f'`{import_path}` has been removed in V2.')
pydantic.errors.PydanticImportError: `pydantic:parse_raw_as` has been removed in V2.

For further information visit https://errors.pydantic.dev/2.11/u/import-error

they returned that pydantic:parse_raw_as has been removed in V2.
C:\Users\quanv>

Expected behaviour:

I want they start the UI normally

Steps to reproduce the issue:

LOGS: pydantic.errors.PydanticImportError: pydantic:parse_raw_as has been removed in V2. (LOGS)
1: C:\Users\quanv>py -3.13 -m pip install opyrator
ctrl-c when they 2 slow at this line: Installing collected packages: pytz, win32-setctime, watchdog, urllib3, tzdata, typing-extensions, tornado, toml, tenacity, sniffio, smmap, six, shellingham, rpds-py, pygments, pyarrow, protobuf, pillow, numpy, narwhals, mdurl, MarkupSafe, idna, h11, colorama, charset-normalizer, certifi, cachetools, blinker, attrs, annotated-types, typing-inspection, requests, referencing, python-dateutil, pydantic-core, plotly, markdown-it-py, loguru, jinja2, gitdb, click, anyio, uvicorn, starlette, rich, pydeck, pydantic, pandas, jsonschema-specifications, gitpython, typer, jsonschema, fastapi, altair, streamlit, opyrator
2: C:\Users\quanv>py -3.13 -m pip install opyrator
3: C:\Users\quanv>opyrator start-ui
then they will return the traceback.
Technical details:

  • Host Machine OS (Windows/Linux/Mac): Windows 11 24H2 x64 (Build 26100.3194) Insider
  • Browser (Chrome/Firefox/Safari): Firefox 137.0.2 (64-bit)

Possible Fix:

BRUH
pydantic/pydantic#6757

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions