It is currently Mon Apr 15, 2024 8:22 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ShellOut Help please [Solved]
PostPosted: Tue Nov 15, 2016 3:26 pm  (#1) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
I have downloaded one and installed it to plugins. At the place where I got it, it only said for Windows or other OS Mac?
I am getting error messages for all programs except MS paint through it.

Trying to call the Nik Collection using it. That has 64bit in it's code.
Anyway none of them are visible and can only use MS PAINT

Errord using
GIMP Warning
Plug-In 'ShellOut' left image undo in inconsistent state, closing open undo groups.

GIMP Warning
Plug-In 'ShellOut' left image undo in inconsistent state, closing open undo groups.

GIMP Warning
Plug-In 'ShellOut' left image undo in inconsistent state, closing open undo groups.

GIMP Warning
Plug-In 'ShellOut' left image undo in inconsistent state, closing open undo groups.

GIMP Error
Opening 'c:\users\susan\appdata\local\temp\ShellOutTempFile.bmp' failed:

Could not open 'c:\users\susan\appdata\local\temp\ShellOutTempFile.bmp' for reading: No such file or directory

_________________


Last edited by sallyanne on Sun Nov 20, 2016 10:57 pm, edited 1 time in total.

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: ShellOut Help please
PostPosted: Tue Nov 15, 2016 7:56 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Got all the nik collection showing in the drop down menu in shellout now (changed all the 64's to 32's) but the shellout plugin is not working. I am still getting the error messages. Can someone let me know if it is installed wrong or something?

I haven't changed any code in the original document except adding a few lines so those programs could be called with


Attachments:
File comment: Original with Nik Collection added
ShellOut.zip [2.82 KiB]
Downloaded 1268 times

_________________


Last edited by sallyanne on Tue Nov 15, 2016 8:06 pm, edited 1 time in total.
Top
 Post subject: Re: ShellOut Help please
PostPosted: Tue Nov 15, 2016 8:02 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
looks like the last line of your error messages is the cause of all those messages.
check if you have that .bmp file in the location it's complaining about.

_________________
TinT


Top
 Post subject: Re: ShellOut Help please
PostPosted: Tue Nov 15, 2016 8:18 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Error dialogue which I have closed now said some lines were 'incorrect'
I have tried another picture and got the same message

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Wed Nov 16, 2016 4:56 am  (#5) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Sallyanne, lets try one step at a time.

For "Silver Efex Pro 2" for example.

Do you have the executable at C:\Program Files\Google\Nik Collection\Silver Efex Pro 2\Silver Efex Pro 2 (32-Bit)\Silver Efex Pro 2.exe


If you do, then when you try to run ShellOut and select "Silver Efex Pro 2", does it create a temporary file at c:\users\susan\appdata\local\temp\ShellOutTempFile.tif

Kevin


Top
 Post subject: Re: ShellOut Help please
PostPosted: Wed Nov 16, 2016 6:59 am  (#6) 
Offline
GimpChat Member

Joined: Aug 10, 2016
Posts: 29
Hi all!
My shellout is working with Nik Collection (64 bit), here's how I configured inside shellout.py

["DFine 2", "\"C:\\Program Files\\Google\\Nik Collection\\Dfine 2\\Dfine2.exe\"", "png"],
["Sharpener Pro 3", "\"C:\\Program Files\\Google\\Nik Collection\\Sharpener Pro 3\\SHP3OS.exe\"", "png"],
["Viveza 2", "\"C:\\Program Files\\Google\\Nik Collection\\Viveza 2\\Viveza 2.exe\"", "png"],
["Color Efex Pro 4", "\"C:\\Program Files\\Google\\Nik Collection\\Color Efex Pro 4\\Color Efex Pro 4.exe\"", "jpg"],
["Analog Efex Pro 2", "\"C:\\Program Files\\Google\\Nik Collection\\Analog Efex Pro 2\\Analog Efex Pro 2.exe\"", "jpg"],
["HDR Efex Pro 2", "\"C:\\Program Files\\Google\\Nik Collection\\HDR Efex Pro 2\\HDR Efex Pro 2.exe\"", "jpg"],
["Silver Efex Pro 2", "\"C:\\Program Files\\Google\\Nik Collection\\Silver Efex Pro 2\\Silver Efex Pro 2.exe\"", "jpg"],


Top
 Post subject: Re: ShellOut Help please
PostPosted: Wed Nov 16, 2016 7:03 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I was going to say if its looking for a BMP file change the extension in Shellout to bmp. The temp file extension will then be saved as a bmp file.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Wed Nov 16, 2016 8:11 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
@paynekj, it makes another file. - Where, I have no idea. Will look later.
@rod, I have no idea why it's looking for a bmp because I have been using jpg's...unless the one it makes is a bmp, or it will only take bmp's?
Again I will look later as I have to go out. Thanks for giving me something to go on.

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Wed Nov 16, 2016 8:36 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Just tried a quick one
Using a .jpg image
changed it to 'use current layer'
Still using an original program in Shellout - NOT one of the nik collection yet.

last few errors:
(most recent call last):
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python\gimpfu.py", line 736, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Susan\.gimp-2.8\plug-ins\ShellOut.py", line 136, in plugin_main
child = subprocess.Popen(args, shell=False)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Thu Nov 17, 2016 10:07 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
sallyanne wrote:
Just tried a quick one
Using a .jpg image
changed it to 'use current layer'
Still using an original program in Shellout - NOT one of the nik collection yet.

last few errors:
(most recent call last):
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python\gimpfu.py", line 736, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Susan\.gimp-2.8\plug-ins\ShellOut.py", line 136, in plugin_main
child = subprocess.Popen(args, shell=False)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

In the Shellout file you have your program listings with an image extension for each at the end. jpg, png, ect
Try changing the file extensions to jpg for each Nik program you want to open.

Example
  ["HDR Efex Pro 2", "\"C:\\Program Files\\Nik Collection\\HDR Efex Pro 2\\HDR Efex Pro 2.exe\"", "jpg"],

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 5:46 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Thanks for that suggestion Rod. I haven't used the nik collection as yet. I just tried to run the XNView on a jpg and came up with this.
Image
And I did change the code in the program to jpg.
Just saved this picture as a .png

I will uninstall it / delete it and re download etc.
My problem hopefully lay in me putting the extra code in before I used it at all.

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 6:05 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Done it. Hasn't made any difference. Must be my pc. Will have to wait until I get a new one.

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 7:41 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
sallyanne wrote:
Done it. Hasn't made any difference. Must be my pc. Will have to wait until I get a new one.

Sallyanne i wonder if you have the actual "PATH" to your program correct for instance mine is
  programlist = [
  ["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "png"],
]


This could be the cause of the "File Not Found" error.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 8:07 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
programlist = [
["XNView", "\"C:\\PF\\XnView\\xnview.exe\"", "png"],MINE from line 35

Quote:
["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "png"],


I can see a couple of things that are different. I got this from the Gimp repository - should it be changed?

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 10:20 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
sallyanne wrote:
programlist = [
["XNView", "\"C:\\PF\\XnView\\xnview.exe\"", "png"],MINE from line 35

Quote:
["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "png"],


I can see a couple of things that are different. I got this from the Gimp repository - should it be changed?

You need to go into program files and see exactly where it is installed and change the path to the correct one. :)
Once you get into the xnview directory and see the xnview.exe file click the address bar and copy the path line that appears. Paste that into the area of the shellout file replacing the other. MAKE SURE you use left slashes AND they are doubled.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 10:25 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Example

Image

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 10:58 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
It's not in there and I had a good look but couldn't see it. Only things that looked like they had today's date on them were Mozilla and Microsoft Office (probably updated)
Also...I have program files but Don't have (86) after it or another folder with.

So I guess it isn't installing correctly?

Just incase
I am running Windows 10, 32 bit
Gimp version 2.8.18
Thanks again for your patience and perseverance with me. I better go get some sleep now.

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 11:07 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
sallyanne wrote:
It's not in there and I had a good look but couldn't see it. Only things that looked like they had today's date on them were Mozilla and Microsoft Office (probably updated)
Also...I have program files but Don't have (86) after it or another folder with.

So I guess it isn't installing correctly?

Just incase
I am running Windows 10, 32 bit
Gimp version 2.8.18
Thanks again for your patience and perseverance with me. I better go get some sleep now.

Then your path is probably
  programlist = [
  ["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "png"],


I have windows 10 32 and 64 bit so i have two program files folders. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: ShellOut Help please
PostPosted: Fri Nov 18, 2016 9:46 pm  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7710
Location: On the other side of this screen
Still no joy.
I went to program files and decided to do a 'search' for the program. Only place there is mention of it is in Scribus and I still cannot find a path.
Image

Something I thought about yesterday but forgot. Gimp CAN see shellout...do I still need to add the path in gimp's preferences?

_________________


Top
 Post subject: Re: ShellOut Help please
PostPosted: Sat Nov 19, 2016 12:02 am  (#20) 
Offline
GimpChat Member

Joined: Oct 29, 2012
Posts: 33
Location: Brisbane, Australia
Hi Sallyanne,

If it helps, attached is a screen print of the shellout.py file I am using. It works for me with XnView and Nik Collection. As Rod indicates it depends on your file system and where your XnView and Nik Collection programs are located. I am using Windows 10 64-bit so, like Rod, 64 bit programs are located in C:\Program Files while 32 bit programs are located in C:\Program Files (x86). If your programs are in C:\Program Files then your ShellOut.py file needs to reflect that location. For example on line 53 of the attached image you would need to change the line to ["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "png"], as suggested by Rod.

Hope this helps.

Bob


Attachments:
shellout.jpg
shellout.jpg [ 612.28 KiB | Viewed 1419 times ]
Top
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Extended version ShellOut.

1



* Login  



Powered by phpBB3 © phpBB Group