编译的gimp2.3.3中python-plugin不能使用
安装到/opt/gimp下系统: ubuntulinux 5.04
$sudo ./configure --prefix=/opt/gimp --disable-print && make && make install
比如我使用addfog这个python-gimp 插件: 可以出现插件的画面,但是按“确定”之后却不能正确执行。
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
其中 bin/gimp2.3 内容为
#!/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 "$@"
所有的python-gimp插件都会出现这样的情况。 TypeError: wrong number of parameters
这个说参数数目不对,你查查 pdb.plug_in_plasma(img, mask, int(time.time()), turbulence) 怎么定义的。
有可能是你的系统中有 gimp-python**, 和你 /opt/ 下的冲突了了。
页:
[1]