Re: newb questions re python-fu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

It was a versions problem:  I am not running my local copy of 2.4.7,
I am running the one that the .dmg installed at /Applications/Gimp.app.

Now that I"ve got that straight, I can run new scripts at 

    /Applications/Gimp.app/Contents/Resources/lib/gimp/2.0/plug-ins

but it will not recognize any installed at   ~/.gimp-2.0/plug-ins.

I can live with that.

Sorry about the missing comma; it was late when I added that line.
I am running Komodo, so I do see the parser"s hints as a rule.

Thanks again,
paul




--- On Mon, 9/22/08, Chris Mohler <cr33dog@xxxxxxxxx> wrote:

> From: Chris Mohler <cr33dog@xxxxxxxxx>
> Subject: Re:  newb questions re python-fu
> To: "paul taney" <paultaney@xxxxxxxxx>
> Cc: "gimp" <Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Monday, September 22, 2008, 6:51 PM
> On Mon, Sep 22, 2008 at 5:41 PM, paul taney
> <paultaney@xxxxxxxxx> wrote:
> >
> >> >
> >> > Thanks very much, Chris.
> >> >
> >> > I am using your file now and made a coupla
> repairs,
> >> afaict.
> >> > But it still doesnt install.  Now I may know
> why, as
> >> running
> >> > it straight up gives  No module named gimpfu!
> >>
> >> AFAIK, you can't run gimp-fu scripts outside
> of GIMP.
> >> There is a
> >> python-fu console (XTNS->Python-Fu->Console)
> that
> >> will allow you to type/paste code in.
> >>
> >> When it doesn't register, is there any console
> output
> >> from GIMP?
> >>
> >
> > No, but if I try to import it in the console I get
> something revealing:
> >>>> import python-fu-vanderwalt
> >  File "<input>", line 1
> >    import python-fu-vanderwalt
> >                 ^
> > SyntaxError: invalid syntax
> >>>>
> >
> > I would not be suprised if python objects to minus
> signs in module names,
> > so I have fixed that in my push script:
> >
> > % cat push.sh
> >  cp python-fu-vanderwalt.py
> ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py
> >  chmod +x ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py
> >  cp python-fu-vanderwalt.py
> ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py
> >  chmod +x
> ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py
> >
> > Still, it does not appear in the Xtns browser or
> <Image>/Filters/Render.
> >
> > Maybe it has to be Capitalized , as in the script...
> >
> > Nope.  That"s not it; I just tested for that, but
> it is something
> > REALLY STUPID.  <it>Je garantir.</it>
> 
> Hi Paul,
> 
> I did not look at it very carefully, but there are still
> indentation
> errors.  I recommend opening it in Eric - it will literally
> show a
> "bug" on the line(s) in question.  You're
> also missing a comma on line
> 92...
> 
> Chris
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux