Skip to content

[Issue]: pydantic.v1 error when installing SD.Next #1497

@longht1234vn

Description

@longht1234vn

Package

SD.Next

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

Asus ProArt RTX 4060Ti 16GB

What happened?

I addressed this issue on Vlad's Git: vladmandic/sdnext#4488 (comment)
Is there anything I can do to make it works?

Console output

Traceback (most recent call last)
│C:\Stability Matrix\Packages\automatic\launch.py:334 in

│ 333 if name == "main":
│> 334 main()
│ 335

│C:\Stability Matrix\Packages\automatic\launch.py:300 in main

│ 299
│> 300 uv, instance = start_server(immediate=True, server=None)
│ 301 if installer.restart_required:

│C:\Stability Matrix\Packages\automatic\launch.py:212 in start_server

│ 211 installer.log.debug(f'Starting module: {server}')
│> 212 module_spec.loader.exec_module(server)
│ 213 uvicorn = None
│in exec_module:999
│in _call_with_frames_removed:488

│C:\Stability Matrix\Packages\automatic\webui.py:12 in

│ 11 from threading import Thread
│> 12 import modules.loader
│ 13 import modules.hashes

│C:\Stability Matrix\Packages\automatic\modules\loader.py:119 in

│ 118
│> 119 from fastapi import FastAPI # pylint: disable=W0611,C0411
│ 120 import gradio # pylint: disable=W0611,C0411

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi__init

│ 6
│> 7 from .applications import FastAPI as FastAPI
│ 8 from .background import BackgroundTasks as BackgroundTasks

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi\applic

│ 12 from annotated_doc import Doc
│> 13 from fastapi import routing
│ 14 from fastapi.datastructures import Default, DefaultPlaceholder

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi\routin

│ 23 from annotated_doc import Doc
│> 24 from fastapi import params, temp_pydantic_v1_params
│ 25 from fastapi._compat import (

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi\params

│ 6
│> 7 from fastapi.openapi.models import Example
│ 8 from pydantic.fields import FieldInfo

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi\openap

│ 4
│> 5 from fastapi._compat import (
│ 6 CoreSchema,

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi_compa

│> 1 from .main import BaseConfig as BaseConfig
│ 2 from .main import PydanticSchemaGenerationError as PydanticSchemaGenera

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi_compa

│ 7
│> 8 from fastapi._compat import may_v1
│ 9 from fastapi._compat.shared import lenient_issubclass

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi_compa

│ 76 else:
│> 77 from .v1 import AnyUrl as AnyUrl
│ 78 from .v1 import BaseConfig as BaseConfig

│C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\fastapi_compa

│ 49 from pydantic.v1.types import SecretStr as SecretStr
│> 50 from pydantic.v1.typing import evaluate_forwardref as evaluate_forward
│ 51 from pydantic.v1.utils import lenient_issubclass as lenient_issubclass

ImportError: cannot import name 'evaluate_forwardref' from 'pydantic.v1.typing' (C:\Stability Matrix\Packages\automatic\venv\Lib\site-packages\pydantic\v1\typing.py)
Error: StabilityMatrix.Core.Exceptions.ProcessException: install script failed with code 1: 'C:\Stability Matrix\Packages\automatic\installer.py:1263: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\r\n import pkg_resources # pylint: disable=redefined-outer-name\r\n15:56:37-438805 INFO

Version

v2.15.4

What Operating System are you using?

Windows

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