You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启动Stable Diffusion时出现TypeError:Textbox.update()收到意外参数'info'

解决Stable Diffusion启动时的TypeError: Textbox.update() got an unexpected keyword argument 'info'错误

问题重现

启动Stable Diffusion WebUI时触发以下TypeError:

TypeError: Textbox.update() got an unexpected keyword argument 'info'

完整调用栈:

File "F:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "F:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data
    prediction_value = postprocess_update_dict(
  File "F:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict
    update_dict = block.get_specific_update(update_dict)
  File "F:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update
    specific_update = cls.update(**generic_update)
TypeError: Textbox.update() got an unexpected keyword argument 'info'

问题原因

该错误由Gradio版本不兼容导致:WebUI(或第三方插件)的代码调用了Gradio特定版本新增的info参数,但当前环境安装的Gradio版本不支持该参数,或是版本过高导致参数被移除/重命名。

解决方案

1. 安装WebUI指定的Gradio版本

Stable Diffusion WebUI对依赖版本有严格要求,手动安装对应版本即可修复:

  • 打开WebUI根目录的终端(Windows用命令提示符/Powershell,Linux/macOS用终端)
  • 卸载现有Gradio:
    pip uninstall -y gradio
    
  • 查看WebUI根目录下requirements.txt文件中Gradio的指定版本(常见如gradio==3.32.0或gradio==3.23.0),安装对应版本:
    pip install gradio==3.32.0
    
    (将3.32.0替换为你从requirements.txt中找到的版本号)

2. 重置所有WebUI依赖(新手推荐)

若手动安装版本出错,直接用WebUI自带脚本重置所有依赖,自动适配兼容版本:

  • Windows:运行webui.bat --reinstall-dependencies
  • Linux/macOS:运行./webui.sh --reinstall-dependencies

3. 排查插件冲突

如果是安装新插件后出现的问题,大概率是插件使用了不兼容的Gradio API:

  • 临时禁用所有第三方插件,启动WebUI测试是否恢复正常
  • 逐个启用插件,定位到触发错误的插件后,更新该插件到最新版本,或联系插件作者反馈兼容性问题

内容的提问来源于stack exchange,提问作者Jay

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 14:43:33