Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
current folder in plugin
#7
(02-29-2024, 12:07 PM)Ofnuts Wrote: Yes, in the Gimp standard error stream. But on Windows it is typically hidden (but I think you can get at it if you start Gimp with gimp-console.exe).

Otherwise:
  • You can catch the worst blunders (unbalanced parentheses, indentation...) by trying to run the code in a command prompt (it should fail, but not elicit syntax errors)
  • You bracket the code in a try/except block, and display the Python error in a Gimp message.
See examples in most of my scripts....

How to run code in command prompt?

I found the gimp-console.exe but it doesn't show gimp, only a bunch of errors. Should it show GIMP and the console at the same time, right? Here is does not show gimp Sad
What to do to remove the errors?

Code:
GEGL-Message: 19:30:45.047: Module 'F:\Programma\GIMP 2\lib\gegl-0.4\exr-save.dll' load error: 'F:\Programma\GIMP 2\lib\gegl-0.4\exr-save.dll': Kan opgegeven module niet vinden.
GEGL-Message: 19:30:45.047: Module 'F:\Programma\GIMP 2\lib\gegl-0.4\exr-load.dll' load error: 'F:\Programma\GIMP 2\lib\gegl-0.4\exr-load.dll': Kan opgegeven module niet vinden.
Skipping duplicate plug-in: 'F:\Programma\GIMP 2\lib\gimp\2.0\plug-ins\ofn-export-layers\ofn-export-layers.html'
Skipping duplicate plug-in: 'F:\Programma\GIMP 2\lib\gimp\2.0\plug-ins\ofn-guillotine-layer\ofn-guillotine-layer.html'
GIMP-Fout: Unable to run plug-in "ofn-tiles.html"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-tiles.html)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "ofn-preset-guides.log"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-preset-guides.log)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "ofn-preset-guides.ini"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-preset-guides.ini)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "ofn-preset-guides.html"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-preset-guides.html)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "ofn-guillotine-layer.html"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-guillotine-layer.html)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "ofn-export-layers.html"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\ofn-export-layers.html)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "Menu.png"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\Menu.png)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "LayersAndGroups.png"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\LayersAndGroups.png)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "HierarchicalExport.png"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\HierarchicalExport.png)

Uitvoeren van dochterproces is mislukt (Exec format error)

GIMP-Fout: Unable to run plug-in "FlatExport.png"
(C:\Users\gebruiker\AppData\Roaming\GIMP\2.10\plug-ins\FlatExport.png)

Uitvoeren van dochterproces is mislukt (Exec format error)
Translation:
"Kan opgegeven module niet vinden." = "Cannot find specified module."
"Uitvoeren van dochterproces is mislukt" = "Execution of daughter process failed"
Reply


Messages In This Thread
current folder in plugin - by gimpygirl - 02-28-2024, 06:46 PM
RE: current folder in plugin - by Ofnuts - 02-28-2024, 11:08 PM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 12:22 AM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 12:48 AM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 01:12 AM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 12:07 PM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 06:33 PM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 11:34 PM
RE: current folder in plugin - by gimpygirl - 03-01-2024, 12:28 AM
RE: current folder in plugin - by Ofnuts - 03-01-2024, 07:35 AM
RE: current folder in plugin - by gimpygirl - 03-01-2024, 08:43 PM
RE: current folder in plugin - by Ofnuts - 03-01-2024, 09:32 PM
RE: current folder in plugin - by gimpygirl - 03-03-2024, 01:49 AM
RE: current folder in plugin - by Ofnuts - 03-03-2024, 04:39 PM
RE: current folder in plugin - by gimpygirl - 03-04-2024, 02:14 AM

Forum Jump: