RSS/Atom feed Twitter
Site is read-only, email is disabled

Error on run Deskew plugin from Python-Fu

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Error on run Deskew plugin from Python-Fu Ramon Valdez 28 Aug 10:02
  Error on run Deskew plugin from Python-Fu Joao S. O. Bueno 29 Aug 14:37
   Error on run Deskew plugin from Python-Fu Ramon Valdez 30 Aug 09:24
Ramon Valdez
2013-08-28 10:02:30 UTC (about 11 years ago)

Error on run Deskew plugin from Python-Fu

I would like to run the (great!) Deskew plugin from the Python-Fu console, info: http://registry.gimp.org/node/2958 I'm a very GIMP Python-Fu beginner, so i followed what user "asperge" did in the post shown above (tested-working Script-Fu batch version): get the image (active image),get the drawable (active layer) and finallyrun plugin "deskew_plugin". I put deskew.exe in the GIMP plugin folder, i opened GIMP, i loaded an image, then in the Python-Fu console i wrote:

image=gimp.image_list()[0] drawable=image.active_layer
pdb.gimp_deskew_plugin(image, drawable, 0, 0, 0, 0, 0)

I getthis error:

Traceback (most recent call last): File "", line 1, in
RuntimeError: calling error

The working Script-Fu calling was: (gimp-deskew-plugin 0 image drawable 0 0 0 0 0) The only difference from the asperge's Script-Fu working version is that in my Phyton version there's no "0" before "image". I guess it's the "run mode" parameter. If i try to insert it, i have an error for too much parameters:

Traceback (most recent call last): File "", line 1, in
TypeError: wrong number of parameters

I would really appreciate any help. Thankyou!
(Windows 8 64 bit, GIMP 2.8.6)

Joao S. O. Bueno
2013-08-29 14:37:49 UTC (about 11 years ago)

Error on run Deskew plugin from Python-Fu

Hi Ramon -
If you add any error mesage that show up in the console when you make this call,
it would help you, and others to understand what is going on.

Otherwise, since the plug-in is not part of GIMP itself, if you have no further anser here, you might try to contact the plug-in author directly.

On 28 August 2013 07:02, Ramon Valdez wrote:

I would like to run the (great!) Deskew plugin from the Python-Fu console, info: http://registry.gimp.org/node/2958 I'm a very GIMP Python-Fu beginner, so i followed what user "asperge" did in the post shown above (tested-working Script-Fu batch version): get the image (active image), get the drawable (active layer) and finally run plugin "deskew_plugin". I put deskew.exe in the GIMP plugin folder, i opened GIMP, i loaded an image, then in the Python-Fu console i wrote:

image=gimp.image_list()[0] drawable=image.active_layer
pdb.gimp_deskew_plugin(image, drawable, 0, 0, 0, 0, 0)

I get this error:

Traceback (most recent call last): File "", line 1, in
RuntimeError: calling error

The working Script-Fu calling was: (gimp-deskew-plugin 0 image drawable 0 0 0 0 0) The only difference from the asperge's Script-Fu working version is that in my Phyton version there's no "0" before "image". I guess it's the "run mode" parameter. If i try to insert it, i have an error for too much parameters:

Traceback (most recent call last): File "", line 1, in
TypeError: wrong number of parameters

I would really appreciate any help. Thankyou!
(Windows 8 64 bit, GIMP 2.8.6)
_______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list

Ramon Valdez
2013-08-30 09:24:11 UTC (about 11 years ago)

Error on run Deskew plugin from Python-Fu

Hi Joao,
thank you for reply.
In my previous message I already wrote the error shown up in the console:

Traceback (most recent call last): File "", line 1, in
RuntimeError: calling error

I still cannot figure out how to make it work. Any idea?
Thankyou

----- Original Message ----- From: Joao S. O. Bueno
To: Ramon Valdez
Cc: "gimp-user-list@gnome.org"
Sent: Thursday, August 29, 2013 4:37 PM Subject: Re: [Gimp-user] Error on run Deskew plugin from Python-Fu

Hi Ramon - If you add any error mesage that show up in the console when you make this call,
it would help you, and others to understand what is going on.

Otherwise, since the plug-in is not part of GIMP itself, if you have no further anser here, you might try to contact the plug-in author directly.

On 28 August 2013 07:02, Ramon Valdez wrote:

I would like to run the (great!) Deskew plugin from the Python-Fu console, info: http://registry.gimp.org/node/2958 I'm a very GIMP Python-Fu beginner, so i followed what user "asperge" did in the post shown above (tested-working Script-Fu batch version): get the image (active image), get the drawable (active layer) and finally run plugin "deskew_plugin". I put deskew.exe in the GIMP plugin folder, i opened GIMP, i loaded an image, then in the Python-Fu console i wrote:

image=gimp.image_list()[0] drawable=image.active_layer
pdb.gimp_deskew_plugin(image, drawable, 0, 0, 0, 0, 0)

I get this error:

Traceback (most recent call last): File "", line 1, in
RuntimeError: calling error

The working Script-Fu calling was: (gimp-deskew-plugin 0 image drawable 0 0 0 0 0) The only difference from the asperge's Script-Fu working version is that in my Phyton version there's no "0" before "image". I guess it's the "run mode" parameter. If i try to insert it, i have an error for too much parameters:

Traceback (most recent call last): File "", line 1, in
TypeError: wrong number of parameters

I would really appreciate any help. Thankyou!
(Windows 8 64 bit, GIMP 2.8.6)
_______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list