You are here

GIMP: How to debug failing python plugins?

4 posts / 0 new
Last post
dsl101
Offline
Last seen: 1 year 4 months ago
Joined: 2011-01-06 04:33
GIMP: How to debug failing python plugins?

I've installed a plugin which isn't working at it should, and the author has asked for the command-line output from running Gimp - is there a way to do this with GimpPortable (or perhaps PAs in general)? Obviously running the PA launcher just exits - where does any console output from Gimp go?

According to Help->About, I'm running Gimp 2.8.14 on Windows 8.1 64-bit.

Tx.

Wm ...
Offline
Last seen: 7 years 11 months ago
Joined: 2010-07-17 12:37
Time passes

Is this still an issue? My guess would be a mismatch in Python versions rather than something PA or OS specific.

Wm

dsl101
Offline
Last seen: 1 year 4 months ago
Joined: 2011-01-06 04:33
Yes, sadly

Sorry - I didn't get a notification about a reply for some reason.

Yes, it is still an issue, and on the author's suggestion I tried a different plugin of his which has similar features. That also fails to work properly, although no errors as such (it just doesn't actually 'do' what it's supposed to). Other python plugins are working perfectly.

The 2 plugins in question are:

Export-scaled: https://github.com/akkana/gimp-plugins/blob/master/export-scaled.py
Saver: https://github.com/akkana/gimp-plugins/blob/master/saver.py

both intended as quick ways to save scaled down versions of the current image. If anyone else fancies testing against GIMP Portable (2.8.14 is my version), I'd be very keen to hear if it's everyone or just me.

I'm still on the hunt to see if I can find the equivalent of console output from GIMP though to help with debugging in general...

John T. Haller
John T. Haller's picture
Online
Last seen: 32 min 59 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Latest Version, Test Local

Be sure you're running the very latest GIMP which is 2.8.4-fix. Hover over the GIMP icon in the PA.c Platform and it will tell you which version. If you're not running the platform, open up the appinfo.ini file within GIMPPortable\App\AppInfo to check.

If GIMP has any logs (I have absolutely no idea) it goes exactly where it would go in the local version adjusted for portability. Are there any GIMP docs that detail its logs? If GIMP itself is producing console output, we do not capture it and there is no way to get it. Console output in Windows world is a rarity.

Ensure the plugins work in a local copy of GIMP first on the exact machine... install temporarily and uninstall when done... before checking in with the publisher. The plugin may just not work on Windows full stop.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments