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

GIMP添加Python脚本至正确目录后出现gimp_wire_read()错误的求助

GIMP添加Python脚本至正确目录后出现gimp_wire_read()错误的求助

我正在尝试结合Python学习GIMP 2.10.38,两者我都不太熟悉。我试着添加一个简单的Python脚本,但它完全没有在GIMP里显示出来。以下是我添加的脚本:

#!/usr/bin/env python
from gimpfu import *

def simple_plugin(image, drawable):
    gimp.message("Hello from a simple plugin!")

register(
    "python-fu-simple-plugin",
    "Simple Plugin Test",
    "A simple test plugin",
    "Your Name",
    "Your Name",
    "2024",
    "<Image>/Filters/Simple Test",  # Or any menu location
    "RGB*",
    [],
    simple_plugin,
)

main()

我已经确认脚本放在了正确的文件夹里——在偏好设置的「文件夹-插件」中验证过了。

我在网上搜索时看到了--verbose参数,用它运行GIMP后得到了如下错误:

Querying plug-in: 'C:\Users\Prafulla\AppData\Roaming\GIMP\2.10\plug-ins\simplepy.py'
gimp-2.10: LibGimpBase-WARNING: gimp-2.10: gimp_wire_read(): error

我知道这是和GIMP内部通信相关的通用错误,但在网上找不到足够的解决信息。我已经尝试过重新安装GIMP,但还没试过手动删除所有相关文件夹。有没有人知道我该怎么继续排查解决这个问题?

备注:内容来源于stack exchange,提问作者fineashell

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.14 09:23:03