Warnings when running GIMP console batch process
Submitted by TJ
I am running gimp-2.8.22 on Windows 10 and every time I run a batch process through the console I'm getting the following warnings.
gimp-console-2.8.exe : Error processing line 3 of C:\Program Files\GIMP 2\Python\lib\site-packages\pygtk.pth: At C:\Users\TJ\Documents\WindowsPowerShell\Modules\OptimizeImages\OptimizeImages.psm1:363 char:13
& $gimpConsole -i -b "(batch-optimize-images \`"$gimpPatt ...
- CategoryInfo : NotSpecified: (Error processin...ages\pygtk.pth::String) , RemoteException
- FullyQualifiedErrorId : NativeCommandError
Traceback (most recent call last): File "C:\Program Files\GIMP 2\Python\lib\site.py", line 152, in addpackage exec line File "", line 1, in ImportError: No module named runtime Remainder of file ignored ** (pythonw.exe:13032): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags' ** (pythonw.exe:13032): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags' ** (pythonw.exe:13032): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags' (gimp-console-2.8.exe:6996): LibGimpBase-WARNING **: gimp-console-2.8.exe: gimp_wire_read(): error batch command executed successfully
The batch process seems like it is working correctly, but it would be nice if there weren't unnecessary warnings every time a batch process is run.
It looks like the same problem was noted in this bug https://bugzilla.gnome.org/show_bug.cgi?id=676546
It says it was fixed, but in my current install of GIMP the import runtime line in pygtk.pth is still there. Did someone find that this is actually necessary and it was put back in? Also the warnings about GFlags looks like it was never addressed.