[digiKam-users] batch - user shell script not working

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] batch - user shell script not working

ceinmart
Hi, 

Digikam 7.1 running on Windows. 

I'm trying to use the batch queue manager + user shell script tool to run a gmic command line. 
The command is fine and works properly from windows command line.

However, always I get errors when I try to run into the digikam.
11:51:18 :: Item "PICT3243.JPG" from queue "#1": Processing...
11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
11:51:38 :: Item "PICT3243.JPG" from queue "#1": User Script: Script process crashed.
11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to create file...

I activated the debug mode and looking at the output appear they don't run any command. 
Is Windows compatible?
What I'm doing wrong?

The command used: L:\fotos\gmic-2.9.2-cli-win64\gmic $INPUT -fx_boost_fade 5,0,0,50,50 -o $OUTPUT,70


[5700] digikam.general: Target album for queue  "#1"  is:  "D:/cmartins/Pictures/Fotos (hd externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/"
[5700] digikam.general: Using  1  CPU core to run threads
[5700] digikam.general: Action Thread run  1  new jobs
[5700] digikam.general: Tool : index=  1  :: name=  "UserScript"  :: group=  1  :: wurl=  QUrl("file:///D:/cmartins/Pictures/Fotos (hd externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/")
[5700] digikam.general: path:  "D:/cmartins/Pictures/Fotos (hd externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30.digikamtempfile.JPG"
[5700] digikam.general: Tool:        ""
[5700] digikam.general: Input url:   QUrl("file:///D:/cmartins/Pictures/Fotos (hd externo)/AAA__ORGANIZAR/tia.negativos/leva2/PICT3243.JPG")
[5700] digikam.general: Output url:  QUrl("file:///D:/cmartins/Pictures/Fotos (hd externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30.digikamtempfile.JPG")

Reply | Threaded
Open this post in threaded view
|

Re: batch - user shell script not working

Maik Qualmann
I've tested it here on Windows 10 and it works with no problems, no error in
the script line. I only adjusted the path, I installed it to C:\gmic-2.9.2-
cli-win64\.
I also have the marked line in the output, I will see where it comes from.

Maik

Am Montag, 12. Oktober 2020, 16:53:07 CEST schrieb Cesar Inacio Martins:

> Hi,
>
> Digikam 7.1 running on Windows.
>
> I'm trying to use the batch queue manager + user shell script tool to run a
> gmic command line.
> The command is fine and works properly from windows command line.
>
> However, always I get errors when I try to run into the digikam.
>
> 11:51:18 :: Item "PICT3243.JPG" from queue "#1": Processing...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": User Script: Script
> process crashed.
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to create file...
>
>
> I activated the debug mode and looking at the output appear they don't run
> any command.
> Is Windows compatible?
> What I'm doing wrong?
>
> The command used: *L:\fotos\gmic-2.9.2-cli-win64\gmic $INPUT -fx_boost_fade
> 5,0,0,50,50 -o $OUTPUT,70*
>
>
> [5700] digikam.general: Target album for queue  "#1"  is:
>  "D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/"
> [5700] digikam.general: Using  1  CPU core to run threads
> [5700] digikam.general: Action Thread run  1  new jobs
> [5700] digikam.general: Tool : index=  1  :: name=  "UserScript"  :: group=
>  1  :: wurl=  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/")
> [5700] digikam.general: path:  "D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30
> .digikamtempfile.JPG" *[5700] digikam.general: Tool:        ""*
> [5700] digikam.general: Input url:
> QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/PICT3243.JPG")
> [5700] digikam.general: Output url:
>  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30
> .digikamtempfile.JPG")




Reply | Threaded
Open this post in threaded view
|

Re: batch - user shell script not working

Maik Qualmann
The empty tool title in the debug output is fixed with this commit:

https://invent.kde.org/graphics/digikam/-/commit/
179fcfb4afd9e0dab55960600dc2145ab49f501d

Maik

Am Montag, 12. Oktober 2020, 19:59:23 CEST schrieben Sie:

> I've tested it here on Windows 10 and it works with no problems, no error in
> the script line. I only adjusted the path, I installed it to C:\gmic-2.9.2-
> cli-win64\.
> I also have the marked line in the output, I will see where it comes from.
>
> Maik
>
> Am Montag, 12. Oktober 2020, 16:53:07 CEST schrieb Cesar Inacio Martins:
> > Hi,
> >
> > Digikam 7.1 running on Windows.
> >
> > I'm trying to use the batch queue manager + user shell script tool to run
> > a
> > gmic command line.
> > The command is fine and works properly from windows command line.
> >
> > However, always I get errors when I try to run into the digikam.
> >
> > 11:51:18 :: Item "PICT3243.JPG" from queue "#1": Processing...
> > 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> > 11:51:38 :: Item "PICT3243.JPG" from queue "#1": User Script: Script
> > process crashed.
> > 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> > 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to create file...
> >
> >
> > I activated the debug mode and looking at the output appear they don't run
> > any command.
> > Is Windows compatible?
> > What I'm doing wrong?
> >
> > The command used: *L:\fotos\gmic-2.9.2-cli-win64\gmic $INPUT
> > -fx_boost_fade
> > 5,0,0,50,50 -o $OUTPUT,70*
> >
> > [5700] digikam.general: Target album for queue  "#1"  is:
> >  "D:/cmartins/Pictures/Fotos (hd
> >
> > externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/"
> > [5700] digikam.general: Using  1  CPU core to run threads
> > [5700] digikam.general: Action Thread run  1  new jobs
> > [5700] digikam.general: Tool : index=  1  :: name=  "UserScript"  ::
> > group=
> >
> >  1  :: wurl=  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> >
> > externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/")
> > [5700] digikam.general: path:  "D:/cmartins/Pictures/Fotos (hd
> > externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e
> > 30 .digikamtempfile.JPG" *[5700] digikam.general: Tool:        ""*
> > [5700] digikam.general: Input url:
> > QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> > externo)/AAA__ORGANIZAR/tia.negativos/leva2/PICT3243.JPG")
> >
> > [5700] digikam.general: Output url:
> >  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> >
> > externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e
> > 30 .digikamtempfile.JPG")




Reply | Threaded
Open this post in threaded view
|

Re: batch - user shell script not working

ceinmart
In reply to this post by Maik Qualmann
Hi Maik, 
Thank you!
If I get this last week version:  digiKam-7.2.0-beta1-20201013T122112-Win64.exe
This fix should be included already? 
(I'm aware this is a newer and beta version, but I will test anyway). 


Em seg., 12 de out. de 2020 às 14:59, Maik Qualmann <[hidden email]> escreveu:
I've tested it here on Windows 10 and it works with no problems, no error in
the script line. I only adjusted the path, I installed it to C:\gmic-2.9.2-
cli-win64\.
I also have the marked line in the output, I will see where it comes from.

Maik

Am Montag, 12. Oktober 2020, 16:53:07 CEST schrieb Cesar Inacio Martins:
> Hi,
>
> Digikam 7.1 running on Windows.
>
> I'm trying to use the batch queue manager + user shell script tool to run a
> gmic command line.
> The command is fine and works properly from windows command line.
>
> However, always I get errors when I try to run into the digikam.
>
> 11:51:18 :: Item "PICT3243.JPG" from queue "#1": Processing...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": User Script: Script
> process crashed.
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to process item...
> 11:51:38 :: Item "PICT3243.JPG" from queue "#1": Failed to create file...
>
>
> I activated the debug mode and looking at the output appear they don't run
> any command.
> Is Windows compatible?
> What I'm doing wrong?
>
> The command used: *L:\fotos\gmic-2.9.2-cli-win64\gmic $INPUT -fx_boost_fade
> 5,0,0,50,50 -o $OUTPUT,70*
>
>
> [5700] digikam.general: Target album for queue  "#1"  is:
>  "D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/"
> [5700] digikam.general: Using  1  CPU core to run threads
> [5700] digikam.general: Action Thread run  1  new jobs
> [5700] digikam.general: Tool : index=  1  :: name=  "UserScript"  :: group=
>  1  :: wurl=  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed/")
> [5700] digikam.general: path:  "D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30
> .digikamtempfile.JPG" *[5700] digikam.general: Tool:        ""*
> [5700] digikam.general: Input url:
> QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/PICT3243.JPG")
> [5700] digikam.general: Output url:
>  QUrl("file:///D:/cmartins/Pictures/Fotos (hd
> externo)/AAA__ORGANIZAR/tia.negativos/leva2/fixed//BatchTool-fDHVAl-3e511e30
> .digikamtempfile.JPG")