当前位置: 首页 > 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.jsqmd.com/news/52430/

相关文章:

  • 国内MBTI测试网站哪家好?CSMBTI凭实力出圈成首选
  • 2025年11月geo优化公司哪家靠谱:ai搜索优化排名这几家强!
  • 2025年11月高阻隔瓶公司推荐指南:专业服务商Top5盘点
  • 2025年质量好的陕西树脂瓦厂家实力及用户口碑排行榜
  • 2025年11月聚乙烯瓶供应商有哪些推荐:专业指南与top5榜单
  • 5、2025年行业内陕西铝代木厂家最新TOP实力排行
  • 2025年口碑好的陕西路灯工厂排行榜单
  • 2025年导热油行星炒锅定做厂家权威推荐榜单:刮底搅拌炒锅/电加热火锅底料搅拌炒锅/电加热全自动行星搅拌炒锅源头厂家精选
  • 2025年口碑好的工业废气处理/陕西废气处理工程用户口碑最好的厂家榜
  • 2025年知名的加厚pp储罐用户好评厂家排行
  • 2025年效果好的陕西噪声治理厂家最新 TOP 实力排行
  • 跨域问题(前端)
  • 2025年评价高的除湿机品牌厂家最新用户好评榜
  • 2025年评价高的发电机厂家推荐及选购参考榜
  • 打开指定文件
  • 2025年下半年小程序/知识产权/抖音推广服务商综合推荐榜单
  • 2025年天丝纱供货厂家权威推荐榜单:兰精天丝纱/国产天丝纱源头厂家精选
  • 2025 年 11 月财税合规服务权威推荐榜:电商跨境退税股权架构全案解析,中小企业风险降低与痛点解决定制方案
  • 2025年知名的耐低温PET片厂家最新推荐权威榜
  • 河南瓷砖岩板全案测评:哪家好?河南康之晨更省心
  • 2025中国市场AI云计算TOP10权威推荐榜单!11月最新推荐!!!!
  • 2025年热门的漂珠复合风管最新TOP厂家排名
  • 2025年质量好的陕西废水处理厂家最新TOP排行榜
  • 2025年比较好的快速温变试验箱/沙尘防尘试验箱厂家最新用户好评榜
  • 2025年口碑好的荞麦面粉机/面粉机械高评价厂家推荐榜
  • 2025年11月能碳管理平台推荐榜单与市场分析报告
  • 2025年11月能碳管理平台权威排行榜单全面解析
  • 2025商标转让行业权威推荐榜!5大口碑平台实测,全流程保障不踩坑!
  • 2025年靠谱的单轨吊物料箱热门厂家推荐榜单
  • MegSpot,一款开源的图像/视频对比软件