Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python-fu: Exiting properly in batche mod with Gimp 2.99
#1
Greetings.

I should first mention that this problem has to do with the new API.
Due to certain constraints, I have to use python 3, and so I've been using Gimp 2.99.

https://www.gimp-forum.net/Thread-What-i...-batch-job

I've tried to adapt the method shown in the thread above for python3, adding a Gimp.quit() at the end of the do_it function.

This is the command I'm using.

Code:
gimp-console-2.99  -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import backrem;backrem.do_it()"

This is the message I get.


Code:
plug-in 'python-eval.py' aborted before sending its procedure return values
batch command experienced a calling error:
Procedure 'python-fu-eval' returned no return values

Other information:
  1. If I remove 'Gimp.quit()' from the actual script and add '-b "Gimp.quit()"' to the command, I still get an error.
  2. If I remove it from both the script and the command, the process does not terminate.

(I'm aware that this isn't code, but I couldn't find the appropriate BBCode tags)
Reply


Messages In This Thread
python-fu: Exiting properly in batche mod with Gimp 2.99 - by mrbookman - 07-23-2021, 08:47 PM

Forum Jump: