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
相关产品推荐
相关产品推荐

