resynthesizer icon indicating copy to clipboard operation
resynthesizer copied to clipboard

error: procedure not found: pdb.plug_in_resynthesizer in snap version of GIMP on Ubuntu 20.04

Open strexgth opened this issue 5 years ago • 5 comments

As I was about to use the heal selection plug-in, it gave me the following error: Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 740, in response dialog.res = run_script(params) File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script return apply(function, params) File "/home/favour/snap/gimp/322/.config/GIMP/2.10/plug-ins/plugin-heal-selection.py", line 148, in heal_selection pdb.plug_in_resynthesizer(timg, tdrawable, 0,0, useBorder, work_drawable.ID, -1, -1, 0.0, 0.117, 16, 500) error: procedure not found

Can someone please help with this? I am currently using Linux, ubuntu 20.04.

strexgth avatar Feb 03 '21 04:02 strexgth

:+1: I encounter the same issue!

wesbz avatar Feb 12 '21 12:02 wesbz

👍 I encounter the same issue!

Have you been able to find a fix for this issue?

ghost avatar Feb 13 '21 15:02 ghost

I assume you got the resynthesizer from some other place, because Ubuntu 20.04 does not package it anymore. I also assume you got the snap packaged GIMP which seems to have the package gimp-python (a Python2 especially for GIMP, since many distributions don't package Python 2, anymore, not supported by the python org as of Jan. 2020.)

I am guessing that when you installed resynthesizer, you omitted a step: copy the executable file "resynthesizer" to the plugins directory. That file is the "engine" plugin that also registers itself as a plugin in the PDB, and that the Python plugins such as "heal selection" call. Thats what the error message means to me.

bootchk avatar Feb 17 '21 17:02 bootchk

I downloaded GIMP through the software manager, and I installed the resynthesizer plugin from GitHub, and extracted them to my download folder, dragged the python files to my Gimp plugin folder and made them executable. I later got the error message once I tried to run the plugin.

ghost avatar Feb 19 '21 15:02 ghost

It will not work to copy just the Python plugins from the resynthesizer repository clone. You need to "build" the repository clone. A "build" compiles an executable plugin file called "resynthesizer." Then you need to install/copy that file, as well as the Python plugins.

bootchk avatar Feb 20 '21 14:02 bootchk