GIMP Chat
http://gimpchat.com/

Python executable
http://gimpchat.com/viewtopic.php?f=8&t=15137
Page 1 of 1

Author:  nixnine [ Fri Dec 30, 2016 3:33 pm ]
Post subject:  Python executable

GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Experienced User



Hey, guys, long time no see.

I, a faithful Linux user, hahaha, am installing Gimp on my son's Windows computer -- shedding tears -- but am having difficulty with my python plugins. The plugins that came with the program are working, but none of my personal ones are. Any advice on this? Do I need to make the scripts executable, and if so, how do you do that in windows?

Thanks,
Nix

Author:  Rod [ Fri Dec 30, 2016 3:36 pm ]
Post subject:  Re: Python executable

nixnine wrote:
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Experienced User



Hey, guys, long time no see.

I, a faithful Linux user, hahaha, am installing Gimp on my son's Windows computer -- shedding tears -- but am having difficulty with my python plugins. The plugins that came with the program are working, but none of my personal ones are. Any advice on this? Do I need to make the scripts executable, and if so, how do you do that in windows?

Thanks,
Nix

Are you installing GIMP-2.8 on your sons computer? Or GIMP-2.9?

Author:  nixnine [ Fri Dec 30, 2016 3:39 pm ]
Post subject:  Re: Python executable

2.8

Author:  nixnine [ Fri Dec 30, 2016 3:51 pm ]
Post subject:  Re: Python executable

I am also having difficulty installing gmic.

Author:  lylejk [ Fri Dec 30, 2016 10:43 pm ]
Post subject:  Re: Python executable

Make sure you use the double bar for any directory path links (required for windows; don't believe so for linux). Example below. :)
["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "png"],

Author:  rich2005 [ Sat Dec 31, 2016 3:51 am ]
Post subject:  Re: Python executable

Quote:
...Do I need to make the scripts executable...

no

Quote:
...I am also having difficulty installing gmic.


Unlike linux where gmic_gimp is a single file, the windoze version is several files.
The gmic_gimp installer will put the files in the correct place, the Gimp profile. Make sure you have the gimp plugin and not the standalone gmic.

A bit about it here: viewtopic.php?f=8&t=15031#p208252

Author:  Nidhogg [ Sat Dec 31, 2016 4:47 am ]
Post subject:  Re: Python executable

Yes you often need to make .py plugins executable on Windows by right-clicking them, select "unblock" and confirm with ok. Better check it every time you download new plugin.
This is sometimes true for .scm scripts too. I think it depends whether the author has already done it. Permissions might also change if you move files between volumes.
G´mic plugin on Windows, unlike in Linux is a folder of multiple files. If you extract it to .gimp plugins folder, you have to enable the folder inside gimp preferences.
I keep G´mic and similar plugins separate from .gimp/plugins cause it might become a problem later if you want to remove/update plugins and don´t remember the dlls and other files.

Author:  dinasset [ Sat Dec 31, 2016 4:51 am ]
Post subject:  Re: Python executable

in Windows there is no such "executable" flag to set, as rich also stated

Author:  Rod [ Sat Dec 31, 2016 5:06 am ]
Post subject:  Re: Python executable

Check the line at the top of your python files and make sure they have the correct path to the python bin folder.
I run Windows 10 64 bit and my location is
#!/usr/bin/env python

Author:  Nidhogg [ Sat Dec 31, 2016 5:24 am ]
Post subject:  Re: Python executable

dinasset wrote:
in Windows there is no such "executable" flag to set, as rich also stated

No but you need to make custom plugins and scripts often visible by unblocking from file properties. Isn´t that basically same thing?
I didn´t have any problem in Win 10 with python.

Author:  dinasset [ Sat Dec 31, 2016 6:04 am ]
Post subject:  Re: Python executable

never had the necessity to change properties in my plug-ins/scripts
I guess nobody else did, otherwise it would be a commonly mentioned requirement.
Maybe this a special case of a user "porting" his filters to another user, I don't know. A problem of user definitions?

Author:  Nidhogg [ Sat Dec 31, 2016 6:26 am ]
Post subject:  Re: Python executable

Are you sure? I thought this is very well known thing.
Just an example I downloaded from gimpscripts minute ago.
http://gimpscripts.com/2012/09/spirograph/

Properties window:

Image

Author:  dinasset [ Sat Dec 31, 2016 7:03 am ]
Post subject:  Re: Python executable

I'm sure (for myself): I downloaded and installed hundreds of plug-ins and scripts and never had the necessity to enter/modify the property.
Let's now talk some other Windows user here around...if not too busy with the celebrations for Year End!

Author:  Rod [ Sat Dec 31, 2016 12:49 pm ]
Post subject:  Re: Python executable

I have never had to unblock any python files/scripts.

Author:  nixnine [ Sat Dec 31, 2016 3:05 pm ]
Post subject:  Re: Python executable

Uninstalled gimp and reinstalled now everything is working fine.

So much easier in linux.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/