It is currently Thu Jul 04, 2024 5:20 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sat Dec 02, 2017 2:41 pm  (#41) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Sorry for the typo error.
The module is the standard "gimpfu" -as ofnuts indicated in post #19.
Thanks for letting me know about "Darwin".
What about the "slash"?
Did you try whether with those modifications (and corrections by yourself) the filter is running?

_________________
"Where am I ?"


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sat Dec 02, 2017 3:51 pm  (#42) 
Offline
GimpChat Member

Joined: Nov 28, 2017
Posts: 18
I was able to get past the "slash" with "Darwin," so thank you! Just ran into another undefined constant...so I really need to fix that problem. In the Python console, I've tried "import gimpfu" and it executes with no error, so it's not the common problem most people have with "ImportError: No module named gimpfu." I thought this would have been all inclusive with the 2.9 build. Maybe its there, but maybe the permissions are not correct or it's damaged? I just don't know where to look for it.

Would anyone recommend that I just delete all my GIMP downloads and just start fresh with Partha's 2.9 download? I currently have the original Gimp 2.8 still loaded, but am not using it.

Thank you in advance. I'm keeping everything still in this thread because it is related.


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sat Dec 02, 2017 6:13 pm  (#43) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
dinasset wrote:
I attach here an amended version (suffixed APPLE), where I put the required additions.
I also added the test for APPLE systems, but here I need your help:

2-You have to check how the "slash" is implemented in APPLE for the paths, I assumed equal to Linux, i.e. "/", if different please change it
Please look at statement 260 thru 271 and tell me.

You don't need to know if you use os.path.sep (and all the functions in the os.path module).

However the big secret is: Windows is quite happy with '/' in file paths. The only place where '\' is required in in the command line (so, not very often in Python, unless you start external commands with shell=True which is a bad idea anyway).

_________________
Image


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sat Dec 02, 2017 6:23 pm  (#44) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
pawnee wrote:
I was able to get past the "slash" with "Darwin," so thank you! Just ran into another undefined constant...so I really need to fix that problem. In the Python console, I've tried "import gimpfu" and it executes with no error, so it's not the common problem most people have with "ImportError: No module named gimpfu." I thought this would have been all inclusive with the 2.9 build. Maybe its there, but maybe the permissions are not correct or it's damaged? I just don't know where to look for it.

Would anyone recommend that I just delete all my GIMP downloads and just start fresh with Partha's 2.9 download? I currently have the original Gimp 2.8 still loaded, but am not using it.

Thank you in advance. I'm keeping everything still in this thread because it is related.


The error "ImportError: No module named gimpfu." occurs when you try a Gimp python script outside of Gimp. It is actually a sign that there are no basic syntax errors in the file, so when I see this in a new version of a script I' writing, it is actually good news. In the Python console it is already imported anyway :)

2.9 is a development version, which means: incomplete functionality and likely bugs. In other words, not fit for Joe/Jane User unless they have reasonable Gimp skills, otherwise they will have a hard time figuring out if the problem is with Gimp bugs or with their understanding of Gimp. Stick to 2.8 until you really know why you need 2.9.

_________________
Image


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sun Dec 03, 2017 1:43 am  (#45) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
pawnee wrote:
I was able to get past the "slash" with "Darwin," so thank you! Just ran into another undefined constant...so I really need to fix that problem. In the Python console, I've tried "import gimpfu" and it executes with no error, so it's not the common problem most people have with "ImportError: No module named gimpfu." I thought this would have been all inclusive with the 2.9 build. Maybe its there, but maybe the permissions are not correct or it's damaged? I just don't know where to look for it.

Would anyone recommend that I just delete all my GIMP downloads and just start fresh with Partha's 2.9 download? I currently have the original Gimp 2.8 still loaded, but am not using it.

Thank you in advance. I'm keeping everything still in this thread because it is related.

From what you are encountering, it seems that -for some undefined reason- in your gimp environment all the constants definitions are missing; they are all part of the module gimpenums which is normally included in the gimpfu modules.
You may try to add
import gimpenums
after the line from gimpfu import * (at the beginning of the filter)
Let me know

_________________
"Where am I ?"


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sun Dec 03, 2017 5:29 am  (#46) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
dinasset wrote:
pawnee wrote:
I was able to get past the "slash" with "Darwin," so thank you! Just ran into another undefined constant...so I really need to fix that problem. In the Python console, I've tried "import gimpfu" and it executes with no error, so it's not the common problem most people have with "ImportError: No module named gimpfu." I thought this would have been all inclusive with the 2.9 build. Maybe its there, but maybe the permissions are not correct or it's damaged? I just don't know where to look for it.

Would anyone recommend that I just delete all my GIMP downloads and just start fresh with Partha's 2.9 download? I currently have the original Gimp 2.8 still loaded, but am not using it.

Thank you in advance. I'm keeping everything still in this thread because it is related.

From what you are encountering, it seems that -for some undefined reason- in your gimp environment all the constants definitions are missing; they are all part of the module gimpenums which is normally included in the gimpfu modules.
You may try to add
import gimpenums
after the line from gimpfu import * (at the beginning of the filter)
Let me know


more like
from gimpenums import *


With "import gimpenums" the constants would have to be prefixed: "gimpenums.NORMAL_MODE"

_________________
Image


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sun Dec 03, 2017 8:22 am  (#47) 
Offline
GimpChat Member

Joined: Nov 28, 2017
Posts: 18
Huge success! Thank you, dinasset and ofnuts! The trick was to remove all levels of GIMP that I had. I then downloaded McGimp 2.8.14 from Partha. I edited dinasset's special DecorationThruPaths he made for me to include "Darwin," but commented out the constants to see if I finally had gimpfu. It worked...no errors...look what I was able to create with your help from one of my photos. Thank you so much for all of your help!

Image


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Sun Dec 03, 2017 9:14 am  (#48) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Hurrah!
I'm very glad for you.
Your "experience" can also be helpful for other "Darwin" users...

_________________
"Where am I ?"


Top
 Post subject: Re: Python Scripts Working, But Python Plug-ins Not Showing on Mac
PostPosted: Fri Apr 05, 2019 1:42 pm  (#49) 
Offline
New Member

Joined: Apr 05, 2019
Posts: 1
Hello Everyone,

If your python plug-ins not showing on mac don't worry.Follow the steps which I give you to solve your query.
Go to Edit >Preferences>Folder>Plug-ins you see gimps plugins clearly listed there automatically.
Thanks...


Top
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts .py script not showing under Python-Fu

3

No new posts Attachment(s) Can someone please convert these two python scripts for Gimp 2.99.19

10

No new posts use in python of plug-in lighting

4

No new posts Attachment(s) GIMP Python-Fu Plug-in template

4

No new posts GIMP 2.10 doesn't install my python plug-ins

1



* Login  



Powered by phpBB3 © phpBB Group