AI软件下载
有趣网站推荐及实用软件下载

TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application

在调试运行python应用TRELLIS的时候发生报错,无法启动应用,部分错误信息如下:

ERROR: Exception in ASGI application
Traceback (most recent call last):
File “D:\python\TRELLIS20250411\py310\lib\site-packages\uvicorn\protocols\http\h11_impl.py”, line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File “D:\python\TRELLIS20250411\py310\lib\site-packages\uvicorn\middleware\proxy_headers.py”, line 60, in call
……………..

raise exc
File “D:\python\TRELLIS20250411\py310\lib\site-packages\starlette\middleware\errors.py”, line 165, in call
await self.app(scope, receive, send) File “D:\python\TRELLIS20250411\py310\lib\site-packages\gradio\route_utils.py”, line 761, in call await self.app(scope, receive, send) File “D:\python\TRELLIS20250411\py310\lib\site-packages\starlette\middleware\exceptions.py”, line 62, “D:\python\TRELLIS20250411\py310\lib\site-packages\gradio_client\utils.py”, line 901, in _json_schema_to_python_type type = get_type(schema)
File “D:\python\TRELLIS20250411\py310\lib\site-packages\gradio_client\utils.py”, line 863, in get_type
if “const” in schema:
TypeError: argument of type ‘bool’ is not iterable
ERROR: Exception in ASGI application

………………….

这个问题是gradio和pydantic版本冲突导致的,我当前gradio版本为4.44.1,pydantic版本为2.11.3

解决办法降低pydantic版本就可以了,重新安装pydantic版本2.10.6

pip install --force-reinstall pydantic==2.10.6


AI软件用不了?2元爽玩4090: 立即体验>>

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(1) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

Nova数字人虚拟主播软件下载-诺瓦小站

Nova数字人虚拟主播软件下载

这个还是2023年做的数字人项目,发现仍有人有这方面需求,我又重新做了一下。把其它所有功能都删除了,只保留了个音频文件驱动口型讲话的功能。 软件功能及用法 启动软件,点击右上角扳手按钮,打开设置界面,先选中一个主播人物,再选择导入一段音频文...

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫