当前位置: 首页 > news >正文

Dify安装插件报错如何处理

查看报错日志

docker logs -f docker-plugin_daemon-1

报错日志如下

2025/11/26 09:30:01 full_duplex.go:59: [INFO]init environment for plugin bowenliang123/md_exporter:2.1.0
2025/11/26 09:30:02 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 82 packages in 25msBuilding pycairo==1.29.0× Failed to build `pycairo==1.29.0`├─▶ The build backend returned an error╰─▶ Call to `mesonpy.build_wheel` failed (exit status: 1)[stdout]+ meson setup/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/src/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/src/.mesonpy-ykyowt_t-Dbuildtype=release -Db_ndebug=if-release-Db_vscrt=md -Dwheel=true -Dtests=false--native-file=/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/src/.mesonpy-ykyowt_t/meson-python-native-file.iniThe Meson build systemVersion: 1.9.1Source dir:/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/srcBuild dir:/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/src/.mesonpy-ykyowt_tBuild type: native buildProject name: pycairoProject version: 1.29.0C compiler for the host machine: cc (gcc 13.3.0 "cc (Ubuntu13.3.0-6ubuntu2~24.04) 13.3.0")C linker for the host machine: cc ld.bfd 2.42Host machine cpu family: x86_64Host machine cpu: x86_64Program python3 found: YES(/root/.cache/uv/builds-v0/.tmpTyOatz/bin/python)Compiler for C supports arguments -Wall: YESCompiler for C supports arguments -Warray-bounds: YESCompiler for C supports arguments -Wcast-align: YESCompiler for C supports arguments -Wconversion: YESCompiler for C supports arguments -Wextra: YESCompiler for C supports arguments -Wformat=2: YESCompiler for C supports arguments -Wformat-nonliteral: YESCompiler for C supports arguments -Wformat-security: YESCompiler for C supports arguments -Wimplicit-function-declaration: YESCompiler for C supports arguments -Winit-self: YESCompiler for C supports arguments -Wmissing-format-attribute: YESCompiler for C supports arguments -Wmissing-noreturn: YESCompiler for C supports arguments -Wnested-externs: YESCompiler for C supports arguments -Wold-style-definition: YESCompiler for C supports arguments -Wpacked: YESCompiler for C supports arguments -Wpointer-arith: YESCompiler for C supports arguments -Wreturn-type: YESCompiler for C supports arguments -Wshadow: YESCompiler for C supports arguments -Wsign-compare: YESCompiler for C supports arguments -Wstrict-aliasing: YESCompiler for C supports arguments -Wundef: YESCompiler for C supports arguments -Wunused-but-set-variable: YESCompiler for C supports arguments -Wswitch-default: YESCompiler for C supports arguments -Wno-missing-field-initializers: YESCompiler for C supports arguments -Wno-unused-parameter: YESCompiler for C supports arguments -fno-strict-aliasing: YESCompiler for C supports arguments -fvisibility=hidden: YESDid not find pkg-config by name 'pkg-config'Found pkg-config: NODid not find CMake 'cmake'Found CMake: NORun-time dependency cairo found: NO../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo withmethod 'pkgconfig' failed: Pkg-config for machine host machine notfound. Giving up.A full log can be found at/root/.cache/uv/sdists-v9/index/46901b1a4cb2cba0/pycairo/1.29.0/yfqQiA982PUk2EuihPGto/src/.mesonpy-ykyowt_t/meson-logs/meson-log.txthint: This usually indicates a problem with the package or the buildenvironment.help: `pycairo` (v1.29.0) was included because `xhtml2pdf` (v0.2.17) dependson `svglib` (v1.6.0) which depends on `rlpycairo` (v0.4.0) whichdepends on `pycairo`
, retrying

很明显,报错原因是缺失依赖

# 进入正在运行的插件守护进程容器
docker exec -it docker-plugin_daemon-1 /bin/bash进入容器后,先查看容器是什么系统
cat /etc/os-release如果是 Ubuntu/Debian 系统,执行以下命令,如果是别的系统,让大模型给出对应系统的安装命令即可apt update
apt install -y libcairo2-dev pkg-config python3-dev build-essential

再次安装插件发现问题解决

http://www.rkmt.cn/news/62372.html

相关文章:

  • 2025年11月高阻隔瓶公司推荐指南:专业服务商Top5盘点
  • 2025年导热油行星炒锅定做厂家权威推荐榜单:刮底搅拌炒锅/电加热火锅底料搅拌炒锅/电加热全自动行星搅拌炒锅源头厂家精选
  • 跨域问题(前端)
  • 打开指定文件
  • 2025 年 11 月财税合规服务权威推荐榜:电商跨境退税股权架构全案解析,中小企业风险降低与痛点解决定制方案
  • 2025年热门的漂珠复合风管最新TOP厂家排名
  • 2025年质量好的陕西废水处理厂家最新TOP排行榜
  • 2025年11月能碳管理平台推荐榜单与市场分析报告
  • Mac法打开“xampp-osx-8.0.28-0-installer”,因为无法验证开发者。
  • 2025年质量好的液压机TOP实力厂家推荐榜
  • 2025年11月自动化厂家推荐榜单与市场分析报告
  • 云南初中数学老师权威排名 2025:线上线下优质师资推荐,精准适配本地中考需求
  • 2025年11月标签纸工厂避坑指南:权威资质验证与场景适配要点详解
  • 2025 年 11 月 CNC 加工中心实力厂家权威推荐榜:精密零件/五轴模具/高速龙门加工,专业定制与创新技术深度解析
  • AI元人文:从价值对齐到价值共生的范式革命及其社会治理实践验证
  • 2025最新密封胶供货商推荐!行业标杆企业权威榜单发布,品质与服务双优助力工程高效建设
  • 内网win10电脑连接外网白名单服务
  • 【ACM出版 | EI,Scopus,ACM三检索】第二届体育科技与运动表现分析国际学术会议(ICSTPA 2025)
  • 2025年最新专注力少儿训练公司哪家好
  • 习题解析之:上课 or 休息
  • 2025年淮安备婚平台Top5推荐:口碑与专业度并重
  • 2025年11月必看:趣睡8H领衔五大品牌,解锁智能床“真香”密码
  • 修改YAML文件里面的属性值
  • 2025最新玻璃胶工厂实力榜!中国顶级玻璃胶生产企业权威推荐,技术产能双领先助力行业发展
  • 2025年大型活动遮阳蓬制造企业排行榜单
  • 2025 年庭院门厂家最新推荐榜,聚焦企业技术研发实力、产品品质保障与市场口碑深度解析庭院门/铝艺庭院门公司推荐
  • 2025年权威的塑料仿真茅草渠道推荐排行榜单
  • 2025年想象力教育科技有限公司推荐哪家值得信赖
  • 2025年铝木复合门窗制造厂家推荐
  • 2025年人造茅草平台口碑排行榜