Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New python-fu plugins are not registering
#7
(02-06-2021, 06:41 AM)opaPeter Wrote: my personal plugin looks at this moment like
c:/Users/Eigenaar/AppData/Roaming/GIMP/2.10/plug-ins:
 drwxrwxrwx  1 Eigenaar Geen 4096 02-05 17:09 doggify

  -rw-rw-rw-  1 Eigenaar Geen 6798 11-09 17:06 gimp_a_generate_bars.py

Since you are in Linux your plugin should read:

Code:
  -rwxrwxrwx  1 Eigenaar Geen 6798 11-09 17:06 gimp_a_generate_bars.py


Ie, it should have the "execute" flag set.

To debug the plugin registration you can put a

Code:
print '****************************************************'

In the plugin code (near the top; anywhere outside a function declaration). Then if you start Gimp in a terminal, this output will be very easy to spot if Gimp sees the script and attempts to register it. Later, the output of any print statement also goes in the Gimp output in a terminal, so it is fairly easy to debug things.

Otherwise there are plenty of reasons why your script doesn't show up and the first one is a syntax error. You can always run your script outside of Gimp in a terminal prompt. If you see:

Code:
   from gimpfu import *
ImportError: No module named gimpfu

then there are no major blunders (unbalanced parens and the like) and python can run the code. Then in the Gimp console find the ************ line and see if there are other errors right under it... You can also check in the pluginrc file , maybe the script isn't registered where you think it is.
Reply


Messages In This Thread
RE: New python-fu plugins are not registering - by Ofnuts - 02-06-2021, 09:09 AM

Forum Jump: