Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Python problem

Mon Jul 26, 2010 7:45 am

I'm not sure if this is the right place for this post or not but I'll follow it wherever you put it. I've just recently (last night) given serious effort to getting python working but something is apparently wrong. The procedure for setting it up is somewhat vague but i think i have everything installed. I installed python, and the 3 or 4 other modules that are needed, I reinstalled gimp, python was checked. Gimp now says python fu as it should, the plugins show up in the menu but the dialogs don't show up. no error messages, nothing, they just don't show up. Specifically, I'm working with this one:
http://www.andyshelley.co.uk/gimpfarris/index.php

I don't know what is meant by this statement: "Remember to set the executable flag on the file."
I've been using these instructions : http://www.gimpusers.com/tutorials/inst ... ndows.html and I've been pretty careful about getting it right.
any thoughts about what I need to do?

Re: Python problem

Mon Jul 26, 2010 8:40 am

OS ?

Re: Python problem

Mon Jul 26, 2010 9:05 am

Sorry, I thought the link I posted indicated it. Windows XP

Re: Python problem

Mon Jul 26, 2010 10:37 am

Some of the gimp plug-ins do not come with permission to run the plug-in.

This is in Llinux but I think it's about the same in Windows.

Right-click the file and select Properties and the Permissions tab. Check, "Allow executing file as program."

Here is a screen shot of the Permissions tab in the Properties of a plug-in I have.

Image

Re: Python problem

Mon Jul 26, 2010 10:45 am

My xp works differently i have to right click the python file and choose unblock and then apply at the bottom of the dialog that pops up.

good luck either way.

Re: Python problem

Mon Jul 26, 2010 10:47 am

Thanks for checking that out for Windows, Rod. :bigthup

Re: Python problem

Mon Jul 26, 2010 10:53 am

i need to edit that..

right click choose properties then unblock and then apply.sorry about that. =)

Re: Python problem

Mon Jul 26, 2010 10:55 am

My post disappeared, so I will repost it.

In windows you shouldn't have to do this. Extensions such as exe, com and bat are by default, executeables. Any other extension could be an executeable when called by another program.

I have been trying to get Gimp and Python to play nice together for over a year. I will post if I ever succeed.

Re: Python problem

Mon Jul 26, 2010 11:00 am

Thanks PhotoMaster that would be awesome.
I usually only have to do this unblocking with exe scripts (SCM and Python)
Weird thing is not all of them have to be unblocked.Must have something to do with the persons machine they are written on maybe?

Re: Python problem

Mon Jul 26, 2010 11:05 am

@Photomaster

It seems we try to post simultaneusly and our messages crashed

well basically i was writing the same:

i never had to do that with py scripts on xp
i did a few time in 7 but for other reasons ,it is not needed to run Gimp py scripts

Re: Python problem

Mon Jul 26, 2010 12:43 pm

For some strange reason my machine makes me do it.
I am running Windows XP also.

Re: Python problem

Mon Jul 26, 2010 8:12 pm

Well, my python plugins show in the list, the dialog boxes don't work. seems like I should be close. I've messed with this on and off for eons. Makes me want to cuss.

Re: Python problem

Mon Jul 26, 2010 9:27 pm

I have Windows XP platform on my laptop and for the life of me i can not get python to work with gimp on it.

Re: Python problem

Tue Jul 27, 2010 4:22 am

http://gimptricks.deviantart.com/gallery/#/d2kqm1b

That works for me.

Read the instructions before you start.

Maybe the newer python files don't play nice with GIMP?

Re: Python problem

Tue Jul 27, 2010 8:15 am

Yes those are the same instructions I used, I'm starting to wonder if it's worth the trouble.

Re: Python problem

Tue Jul 27, 2010 8:58 am

SHould be not needed restart the computer, but in case of problems that solved for me


And remember the sequence :

first install python,
restart the pc,
then install the other libraries,
restart the pc
and reinstall gimp
(remember to click on the customize button when dispayed )

Again all the "restart" may be unnecessary, but are the first thing to try if something doesn't work

Re: Python problem

Tue Jul 27, 2010 10:28 am

I'll try that sequence tonight when I get some free time and see if it works. Sometimes weird silly stuff works when nothing else will. I had to go through weirder (is that a word?) things to get my bamboo working with gimp. Weirder stuff to get it to work with Inkscape too.

Re: Python problem

Tue Jul 27, 2010 12:08 pm

Good news! I followed PhotoComix's instructions for installing all of the python stuff and re-installing Gimp last! Shazam!! I have Python-fu!! Success!!

Thanks again PhotoComix!!

Greg

Re: Python problem

Tue Jul 27, 2010 12:21 pm

I recommend layerfx.py - aka Layer Effects

This says it was tested in gimp2.4 but it works in 2.6 for me. It goes in your gimp / plug-ins folder.

http://registry.gimp.org/node/186

I had to set the permissions for the plug-in to execute as a program. Don't know if that's true for Windows. I'm using Linux.

Good job getting Python set up. :bigthup

Re: Python problem

Tue Jul 27, 2010 7:36 pm

Alas, it didn't solve my problem. I'm going to stick my head in an oven and end it all. At least my oven is electric and has a pie in it.
Post a reply