It is currently Thu Jul 04, 2024 4:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 10:02 am  (#1) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I can't use most of the plugins I added to the Gimp 2.6.11 plugin folder. This is the error I receive for every one.....
Can anyone help with this?
Image

_________________
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 10:26 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Molly, I posted somewhere about that. The old style of tuples was to use brackets [ ] to enclose numerical parameters. Tuples are now enclosed just with parentheses ( ).

Read here:
viewtopic.php?f=9&t=673

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 11:06 am  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
o thanx mahvin. I read that but I don't know how to do that stuff so I kind of ignored it. Where do I go to find this stuff I have to fix? :oops: I haven't a clue.

@mahvin, just found the file, now my troubles are over.Image

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 12:12 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Molly
open the script with the notepad (not word, just the simple notepad)
where you see group of numbers enclosed in [] you replace with ()

as example [3,29,55] become (3,29,55)

then i don't know that script, if is old may have other problems.

but if is only for that will be simple to fix...and don't worry script didn't explode , if you do some mistakes at worst the script will remain broken as is it now

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 12:18 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
PS if recive that message for ALL your python plugins then they should be all quite old, maybe is better you start a new collection

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 12:30 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
not all of them, just some.
I only downloaded them yesterday. I opened a couple with notepad++ and took out all the "[" and replace them with "(" and they still don't work. I give up. I think I will just work with the scripts and plugins that do work and stay away from the ones that don't. I am just getting too frustrated.
thanx guys for helping.
I will go through all the plugins that don't work and delete them from my plugin folder.....

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 1:03 pm  (#7) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Not all the [] molly
only that with inside series of numbers

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 1:26 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
O, I didn't know that.. Some of these have both ")]" So everything that has numbers like[000-22-111], they should be changed to "()"?
Image

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 3:40 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Yes Molly, every "gimp.set" command that has 3 series of numbers (these are numbers that represent colors in the cubic pattern py file) when you see [ ] , replace them with ( ), and change nothing else. This is for the cubic pattern file only.

def cubic_patterns(width, height, size, seamless):
   oldcolor = gimp.get_background()
   gimp.set_background([184,182,17])
   
   # Create new image
   img = gimp.Image(width, height, RGB)
   # Disable Undo
   img.undo_group_start()

   # Background Layer
   bg_layer = gimp.Layer(img, "Background", width, height, RGBA_IMAGE, 100, NORMAL_MODE)
   img.add_layer(bg_layer, 0)
   bg_layer.fill(BACKGROUND_FILL)

   layer = gimp.Layer(img, "Cubic Pattern", width, height, RGBA_IMAGE, 100, NORMAL_MODE)
   img.add_layer(layer, -1)
   pdb.gimp_image_set_active_layer(img, layer)
   draw = pdb.gimp_image_get_active_drawable(img)
   layer.fill(BACKGROUND_FILL)
   
   gimp.set_background([0,0,0])
   pdb.plug_in_cubism(img, layer, size, 1.6, 0)
   pdb.plug_in_edge(img, layer, 4, 0, 1)
   pdb.gimp_colorize(layer, 110, 80, 30)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Fri Nov 19, 2010 4:20 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Wow, my last post went missing... I'll repeat what I said. On the pyingyang.py file that you have showing two posts above, the [0,0,0] and [255,255,255] both need to be changed to (0,0,0) and (255,255,255) along with the gimp.set brackets (the same as with cubicpattern.py)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 6:11 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
thanx mahvin. I was able to fix the pattern cubic.py and it works but I don't know how to get anything except a green background pattern with it. I changed my colors and tried a bunch of things but I still get just the green BG when I run the script.

As far as the brush plug-in, I still get the error that it can't be found in brushes..... I guess I will have to give up on that one. (I still know know why the error would say that when it isn't in the brush folder, it is in the plug-in one.

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 6:18 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Molly:

That's because the colors are hard coded into the plug-in. When I learn more Python in the future, I'll try and add color option menus to it. No promises, but I will try.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 6:26 am  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
ok thanx mahvin. I just did one with the cubic and I changed the mode to grain extract, this is what I got.Image

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 6:30 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I know I asked this yesterday, but did you check your plug-ins folder to see if phrase_brush.py was in there, as well as Win7-64phrase_brush.py? Because if both are in the folder, it will not work correctly. Remove the phrase_brush.py if it's there.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 6:31 am  (#15) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Try running cubic patterns, duplicate the layer, then change top layer mode to difference and flip it horizontally. Then change the background layer using Bucket fill, and different colors.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 7:56 am  (#16) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
mahvin wrote:
I know I asked this yesterday, but did you check your plug-ins folder to see if phrase_brush.py was in there, as well as Win7-64phrase_brush.py? Because if both are in the folder, it will not work correctly. Remove the phrase_brush.py if it's there.

Yes mahvin, I did check the plugin folder. there is only ONE phrase brush in there.....I know it won't work with two plug-ins or scripts of the same name and ex......

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 8:04 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
mahvin wrote:
Try running cubic patterns, duplicate the layer, then change top layer mode to difference and flip it horizontally. Then change the background layer using Bucket fill, and different colors.


COOL.... what did the flip to horizontal do?

Image

Image

_________________
Image


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 8:09 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
When you duplicate layers, the same pattern remains, unless you flip it. It just overlays the layers so they aren't in the same placement.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Getting errors on all my Python plugins
PostPosted: Sat Nov 20, 2010 8:50 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
thanks... good to know

_________________
Image


Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Does anyone have script fu and python plugins that work on 2.99.19?

1

No new posts Attachment(s) Errors

4

No new posts Pattern Overlay Errors

1

No new posts Attachment(s) Errors (some) in G'MIC SQUIGGLY (FIXED)

4

No new posts Convert GIMP plugin from Python 2 to Python 3

4



* Login  



Powered by phpBB3 © phpBB Group