python应用运行时报错,部分信息如下:
ERROR: Exception in ASGI application Traceback (most recent call last): File “lib\site-packages\pydantic\type_adapter.py”, line 270, in _init_core_attrs self._core_schema = _getattr_no_parents(self._type, ‘__pydantic_core_schema__’) File “lib\site-packages\pydantic\type_adapter.py”, line 112, in _getattr_no_parents raise “D:\python\LivePortrait20241010\myenv\lib\site-packages\pydantic\type_adapter.py”, line 135, in wrapped return func(self, *args, **kwargs) File “D:\python\LivePortrait20241010\myenv\lib\site-packages\pydantic\type_adapter.py”, line 277, in _init_core_attrs self._core_schema = _get_schema(self._type, config_wrapper, parent_depth=self._parent_depth) File “D:\python\LivePortrait20241010\myenv\lib\site-packages\pydantic\type_adapter.py”, line 95, in _get_schema schema = gen.generate_schema(type_) File packages\pydantic\_internal\_generate_schema.py”, line 558, in _unknown_type_schema raise PydanticSchemaGenerationError( pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class ‘starlette.requests.Request’>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it. If you got this error by calling handler(<some type>) within __get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion. For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type
错误信息一大串,我主要是在使用gradio生成的webui界面操作的时候报错:
Assist:gradion ui opens to input or generate an error Could not parse server response: SyntaxError: Unexpected token ‘I’, “Internal S”… is not valid JSON
上面信息主要是由于gradio BUG引起的错误,卸载重装或升级gradio和gradio_client即可
相关推荐
gradio webUI页面增加URL超文本链接方法
ImportError: DLL load failed while importing rusty_manga_image_translator: 找不到指定的模块。
JupyterLab内5090显卡配置下SageAttention重新编译步骤
ERROR: Failed to build 'mmcv' when getting requirements to build wheel
Python gradio应用启动后局域网内其它电脑访问使用开启端口方法
cannot load library 'libcairo-2.dll': error 0x7e. Additionally,
model = whisperx.load_model(卡住,程序崩溃闪退
Processing failed:'DINOv3ViTModel' object has no attribute 'layer'
最近更新
无审查 NSFW AI 工具导航中文版:54 款工具与 8 款模型教程的开源清单
面向成年创作者的无审查 AI 工具导航中文版,收录 54 款图像、视频与大语言模型工具,附 8 款开源模型的显存速查和部署教程,纯静态开源可自部署。
Infinitary:用一位“大副”调度多智能体的开源 AI 工作室
Infinitary 是一款开源桌面 AI 工作室:一个“大副”负责规划与调度,多个“船员”智能体各自执行任务,结果以卡片形式返回。支持 macOS、Linux、Windows,可接入 Claude、Codex、Grok、OpenRouter 等模型服务,iPhone/iPad 版处于私人 TestFlight 阶段。
482 Star 的 Claude Code 技能包:在你的 PC 上渲染竖屏短片
claude-shorts-skills 为 Claude Code 增加四项竖屏短片制作技能,用 three.js 和 Remotion 在本地渲染 3D 卡通故事、Minecraft 剧情视频与逐词同步字幕,不依赖 AI 视频生成器。项目获 482 Star、66 Fork,含 Minecraft 体素渲染引擎,但材质需用户自行从游戏副本中提取。
拒绝 AI 味设计:unprompted 为 AI 编程助手加上规则与设计方向
unprompted 是面向 AI 编程代理的反模板化 Web 设计套件,包含 40 条规则、7 个技能、六种行业设计原型,以及零依赖的 UI 扫描、对比度检查和 MCP 验证工具。
净影 CleanFrame:开源自托管 AI 视频去水印与字幕擦除工作台
净影 CleanFrame 是一个 Apache-2.0 开源的视频去水印与硬字幕擦除工作台,支持批量框选、AI 视频修复、31 语种翻译配音与字幕烧录,可自托管部署,真实处理依赖火山引擎 LAS 与 TOS。
Fooocus v3.4.9:面向 Windows x64 的便携式 FP8 图像生成环境
Fooocus 是一个面向 Windows 10/11 x64 的预配置便携式 AI 图像生成 WebUI,内置 CUDA 12.8、Triton、FlashAttention-2 与 GGUF/FP8 量化运行时,提供本地浏览器界面和 OpenAI 兼容 API。本文介绍其功能、运行环境、启动方式与使用注意事项。
LivePortrait WebUI:面向 Windows x64 的便携式本地 AI 工作室
LivePortrait WebUI 是一个面向 Windows 10/11 x64 的便携式本地 AI 发行版,预置 CUDA 12.8、Triton、FlashAttention-2 与 GGUF/FP8 量化运行时,提供本地 WebUI 和兼容 OpenAI 的 API 端点。本文介绍其功能、运行环境、使用方式与注意事项。
LDSR v3.8.2:面向 Windows 10/11 x64 的独立便携工作区
LDSR v3.8.2 是一个面向 Windows 10/11 x64 的独立便携工作区与安装包,强调本地配置存储、离线运行和高 DPI 多显示器适配。本文介绍其功能、运行环境、使用方式与注意事项。
SwarmUI v3.6.1 便携版:Windows 本地 CUDA 推理与 WebUI 工作区
SwarmUI v3.6.1 是一个面向 Windows 10/11 x64 的自包含本地推理发行包,预置 CUDA 12.8、Triton、FlashAttention-2 与 GGUF/FP8 量化运行时,提供本地 WebUI 和兼容 OpenAI 的 API 服务。本文介绍其功能、运行环境、使用方式与适用场景。
T2I v3.4.1:面向 Windows 的便携式 CUDA 12.8 / FP8 / GGUF 推理工作台
T2I v3.4.1 是一个面向 Windows 10/11 x64 的独立本地推理运行环境,预置 CUDA 12.8、Triton、FlashAttention-2 和 GGUF/FP8 量化运行时,提供便携 WebUI 与 OpenAI 兼容 API,适合不想处理 Python 依赖冲突的本地文生图用户。




