How to get error messages in plugin registration? - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions) +---- Thread: How to get error messages in plugin registration? (/Thread-How-to-get-error-messages-in-plugin-registration) |
How to get error messages in plugin registration? - Ottia Tuota - 03-21-2020 I am on Windows 10. I remember having seen how to get error messages from registration of a Python plugin, but I don't find it. (I guess it was on Gimp-Forum.com?) I am making a plugin. It runs ok in the console. When I try to registrate it, I get no error messages but it does not appear in Gimp's menu. When I feed the registration part (without the main()) in the console, no syntax errors are found. I cannot see any faults in the code. This situation has happened many times in the past, and every time it takes a long time to find the errors without any help from error messages. So, please, tell me how I can get the error messages, and the simpler the method the better. RE: How to get error messages in plugin registration? - rich2005 - 03-21-2020 Is this post any help? https://www.gimp-forum.net/Thread-Debugging-python-fu-scripts-in-Windows RE: How to get error messages in plugin registration? - Ottia Tuota - 03-22-2020 Thank you. This may be just the message I was remembering. I shall see to this and come back later. RE: How to get error messages in plugin registration? - Ottia Tuota - 03-22-2020 I tried redirecting stderr and stdout but for some reason could not make it work. But while trying I made some changes in the files, and the problem vanished! I don't understand, but am happy now (until next time...). By the way, that page has the other advice, and there: Code: import sys; # extend the python path to include the plug-ins directory I do not understand this and am only guessing. But is it right? Should it not read: Code: import sys; # extend the python path to include the plug-ins directory I did not try. Just wondering. RE: How to get error messages in plugin registration? - Ofnuts - 03-22-2020 Good guess. Fixed. |