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

After Python plugin crashed, the plugin is not loaded anymore

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.

2016-12-25 23:18:08 UTC (almost 8 years ago)
postings
2

After Python plugin crashed, the plugin is not loaded anymore

Hello,

as a newby to writing a python plug-in for gimp 2.8.10 on kubuntu 14.04 I managed to do what I want on a prototype-level.

Then while cleaning up, I made a simple syntax error (added one bracket too much) and I got the gimp warning that my plug-in has crashed and left gimp in unstable state. After restarting gimp, the plug-in was not visible any more.

I had this situation quite a few time (also in Win7) and I solved it by deleting the plug-in from my plug-ins folder, starting gimp, closing it, copying the plug-in back in and after restart, it was there again.

But this time, it did not work. I even uninstalled gimp completely, but the problem remains:

Gimp is even not loading the most simple script which I have started the whole project.

Does anybody know what to do about this?

Best regards and merry Christmas,

Chris

PS, the situation was even more "interesting": When I started it all with that simple example hello world, I deleted the plug-in, replaced it by another script but I always saw the old, already deleted one...

Ofnuts
2016-12-26 18:41:09 UTC (almost 8 years ago)

After Python plugin crashed, the plugin is not loaded anymore

On 26/12/16 00:18, GimpMin wrote:

Hello,

as a newby to writing a python plug-in for gimp 2.8.10 on kubuntu 14.04 I managed to do what I want on a prototype-level.

Then while cleaning up, I made a simple syntax error (added one bracket too much) and I got the gimp warning that my plug-in has crashed and left gimp in unstable state. After restarting gimp, the plug-in was not visible any more.

I had this situation quite a few time (also in Win7) and I solved it by deleting the plug-in from my plug-ins folder, starting gimp, closing it, copying the plug-in back in and after restart, it was there again.

But this time, it did not work. I even uninstalled gimp completely, but the problem remains:

Gimp is even not loading the most simple script which I have started the whole project.

Does anybody know what to do about this?

Best regards and merry Christmas,

Chris

PS, the situation was even more "interesting": When I started it all with that simple example hello world, I deleted the plug-in, replaced it by another script but I always saw the old, already deleted one...

If the Python code has syntax errors, it won't run during the registration process and so won't show up. And if you edited it, Gimp will try to re-register it.

Since you are on Linux, if you start Gimp in a terminal, you will see the syntax error messages produced by Python in the terminal (likewise, if you add Python "print" statements to help you debug the code they will show in that terminal window, just remember to remove them before giving the code to Windows users otherwise the plugin will appear to hang).

See Edit>Preferences>Folders>Plug-ins, to check where Gimp looks for plug-ins. Also check for links.

Uninstalling Gimp is pointless, since it leaves the user profile in place and this profile is re-used as is by the newly installed Gimp. So any problems with the Gimp profile remain around. Better rename the profile (~/.gimp-2.8 to ~/.gimp-2.8.disabled) and restart Gimp so that it creates a new profile. Then you can copy over selected stuff from the old profile.

2016-12-27 22:19:16 UTC (almost 8 years ago)
postings
2

After Python plugin crashed, the plugin is not loaded anymore

Hello Ofnuts,

thank you for your reply. The hint with the startup info on the console helped a lot. As in most of these strange cases, the problem was in between keyboard and chair... ;-)

My simple script didn't start, since I had an "Umlaut" in an comment of which I thought I had removed already.

For the bigger script, I actually do not know the problem. Yesterday, when I tried it first, it was complaining about an indention problem, which I could not find, the given line was obviously ok. And, surprise, surprise, today, it does not complain. It seems that this is one of the issues programmers face sometimes...

Anyway, thank you for your help!!

Best regards,

Christoph

Ofnuts
2016-12-28 10:01:07 UTC (almost 8 years ago)

After Python plugin crashed, the plugin is not loaded anymore

On 27/12/16 23:19, GimpMin wrote:

Hello Ofnuts,

thank you for your reply. The hint with the startup info on the console helped a lot. As in most of these strange cases, the problem was in between keyboard and chair... ;-)

My simple script didn't start, since I had an "Umlaut" in an comment of which I thought I had removed already.

For the bigger script, I actually do not know the problem. Yesterday, when I tried it first, it was complaining about an indention problem, which I could not find, the given line was obviously ok. And, surprise, surprise, today, it does not complain. It seems that this is one of the issues programmers face sometimes...

Some indentation problems can be hard to find because your editor shows tabs as N spaces, while these are
different for Python. Since you are on Kubuntu, Kate will do it...

You can keep umlauts in comments if you add:

# -*- coding: utf-8 -*-

or

# -*- coding: iso-8859-15 -*-

.. as the second line in your file (and have the editor save the file with the proper encoding, and AFAIK Kate will do so if it sees such indications).

2020-04-06 07:23:23 UTC (over 4 years ago)
postings
2

After Python plugin crashed, the plugin is not loaded anymore

No! That is also not fair. I think we are supposed to kill anyone. Humanity is the biggest religion and we all are humans but now I can easily check https://essay-writing-service.us.org/buy-coursework to manage my assignment work. It’s our choice to live our live according to our wish. Thus I will not allow my kids to play such games.