QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1497|回复: 1

编译的gimp2.3.3中python-plugin不能使用

[复制链接]
发表于 2005-12-20 22:46:07 | 显示全部楼层 |阅读模式
安装到  /opt/gimp  下
系统: ubuntulinux 5.04

[code:1]

$sudo ./configure --prefix=/opt/gimp --disable-print && make && make install

[/code:1]
比如我使用  addfog  这个python-gimp 插件: 可以出现插件的画面,但是按“确定”之后却不能正确执行。

[code:1]woody@ubuntu:~$ bin/gimp2.3
This is a development version of The GIMP.
Debug messages may appear here.

Traceback (most recent call last):
  File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 503, in response
    dialog.res = run_script(params)
  File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 269, in run_script
    return apply(function, params)
  File "/opt/gimp/lib/gimp/2.0/plug-ins/foggify.py", line 40, in python_foggify
    pdb.plug_in_plasma(img, mask, int(time.time()), turbulence)
TypeError: wrong number of parameters
[/code:1]

其中 bin/gimp2.3 内容为
[code:1]
#!/bin/sh

PATH=/opt/gimp/bin:$PATH
export PATH
LD_LIBRARY_PATH=/opt/gimp/lib:/opt/gimp/lib/gimp/2.0/python
export LD_LIBRARY_PATH

/opt/gimp/bin/gimp-2.3 "$@"[/code:1]

所有的python-gimp插件都会出现这样的情况。
发表于 2005-12-21 12:59:45 | 显示全部楼层
TypeError: wrong number of parameters

这个说参数数目不对,你查查 pdb.plug_in_plasma(img, mask, int(time.time()), turbulence) 怎么定义的。

有可能是你的系统中有 gimp-python**, 和你 /opt/ 下的冲突了了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-4 22:04 , Processed in 0.048156 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表