fnamc.groovy (The system cannot find the file specified)

Support for Windows users
Post Reply
bvd
Posts: 4
Joined: 27 Jun 2016, 13:56

fnamc.groovy (The system cannot find the file specified)

Post by bvd »

Hello, I recently had filebot 4.6.1 installed with qbittorrent 3.3.4 and everything was working perfectly. I was using this script for post processing of downloaded tv and movies:

filebot -script fn:amc --output "C:\Users\bvd\Videos" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"

Now, somewhere between upgrading filebot to 4.7 and/or qbt to 3.3.5, the post processing scrip is failing. When I try to run the script manually in a folder with some media I get this error:

fnamc.groovy (The system cannot find the file specified)
java.io.FileNotFoundException: fnamc.groovy (The system cannot find the file specified)
at net.filebot.util.FileUtilities.streamLines(FileUtilities.java:169)
at net.filebot.util.FileUtilities.readTextFile(FileUtilities.java:180)
at net.filebot.cli.ScriptSource$5.lambda$getScriptProvider$0(ScriptSource.java:104)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Failure (°_°)

I can't find "fnamc" or "amc" on my computer anywhere. Java is installed and I didn't touch it. I've downgraded filebot and bqt and it still will not work...could use a little help here...Thanks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fnamc.groovy (The system cannot find the file specified)

Post by rednoah »

The error message makes no sense whatsoever. What is the actual command that is executed by qBT?
:idea: Please read the FAQ and How to Request Help.
bvd
Posts: 4
Joined: 27 Jun 2016, 13:56

Re: fnamc.groovy (The system cannot find the file specified)

Post by bvd »

This is the script I have in qbt...it worked great for a couple months and then stopped:

filebot -script fn:amc --output "C:\Users\bvd\Videos" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"



I got the script from here: viewtopic.php?f=4&t=215#p9774
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fnamc.groovy (The system cannot find the file specified)

Post by rednoah »

This is not a command, this is a template for a command because qBT will replace the %variables before executing a command. Please read the Troubleshooting section.

The first step of solving any issue is reproducing it. You can't do that unless you know what command qBT is executing.
:idea: Please read the FAQ and How to Request Help.
bvd
Posts: 4
Joined: 27 Jun 2016, 13:56

Re: fnamc.groovy (The system cannot find the file specified)

Post by bvd »

Ok, this is the command I ran:
filebot -script fn:amc --output "C:\Users\bvd\Videos" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
This is the output from the CMD winndow:
C:\Users\bvd\Videos\_incomplete\Hunters.S01E12.HDTV.x264-KILLERS[rarbg]
>filebot -script fn:amc --output "C:\Users\bvd\Videos" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes unsorted=y music=y artwork=y "ut_dir=N" "ut_label=L"
Locking C:\Users\bvd\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Tue Jun 28 09:04:40 EDT 2016]
Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = N
Parameter: ut_label = L
Using excludes: C:\Users\bvd\Videos\amc.excludes (206)
No such property: ut_kind for class: Script1
groovy.lang.MissingPropertyException: No such property: ut_kind for class: Script1
at Script1.run(Script1.groovy:187)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Failure (┬░_┬░)
This is what was written to the amc.log file:
Run script [fn:amc] at [Tue Jun 28 09:04:40 EDT 2016]
Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = N
Parameter: ut_label = L
Using excludes: C:\Users\bvd\Videos\amc.excludes (206)
No such property: ut_kind for class: Script1
groovy.lang.MissingPropertyException: No such property: ut_kind for class: Script1
at Script1.run(Script1.groovy:187)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Failure (°_°)
As I said before, it worked perfectly for months, then it just stopped after upgrading filebot and qbt...Thanks again for your help!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fnamc.groovy (The system cannot find the file specified)

Post by rednoah »

1.
This is not the command qBT is executing, as explained in the Troubleshooting section.

Also, these logs show that whatever the issue is in the original post, it's working fine now, albeit called with bad arguments.


2.
As I said before, it worked perfectly for months, then it just stopped after upgrading filebot and qbt...
It's a qBT issue then.
:idea: Please read the FAQ and How to Request Help.
bvd
Posts: 4
Joined: 27 Jun 2016, 13:56

Re: fnamc.groovy (The system cannot find the file specified)

Post by bvd »

I downgraded to the last version of qbt and the post processing still doesn't work...same error...so I don't think its a qbt error.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fnamc.groovy (The system cannot find the file specified)

Post by rednoah »

rednoah wrote:What is the actual command that is executed by qBT?
Well, time to find out what commands qBT is executing. There should be some kind of logging, but I don't use qBT so you'll have to figure that one out yourself, or ask in the qBT forums.


Template Command (cannot run on command-line; not executed by qBT verbatim)

Code: Select all

filebot -script fn:amc --output "X:/Media" --action copy --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
Actual Command (can run on command-line; this is what qBT executes; we want to know what qBT actually executes)

Code: Select all

filebot -script fn:amc --output "D:/Organized Media" --log-file amc.log --action duplicate --conflict override -non-strict --def "ut_dir=D:\Media\Avatar" "ut_file=" "ut_kind=multi" "ut_title=Avatar" "ut_label=" "ut_state=5"
Spot the difference? This is but one example. The actual command will be different for each specific call.
:idea: Please read the FAQ and How to Request Help.
Post Reply