QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: Subhban15 on November 30, 2015, 07:37

Title: Problem with job manager
Post by: Subhban15 on November 30, 2015, 07:37
Each time I send a job to the job manager, this error pops up (attached).

I tried reinstalling/updating the addon "Job Manager" from the "Addon Manager" list in "help" that didn't work so I tried reinstalling the software but all in vain.  :'(

Please help!

Thank you!
Title: Re: Problem with job manager
Post by: Jess Wellendorff on December 1, 2015, 09:18
I need you to click the "show details" botton on the error message that pops up, and then upload the traceback of the error, either as text or as an image. The traceback contains a lot of information about the problem, and without it we can only guess as to the reason for the error...
Title: Re: Problem with job manager
Post by: Subhban15 on December 1, 2015, 11:47


Error message:
"D:/Subh/new- for report only/work11-24-newfinal/analysis transspec spin test/c1a_pass_pol_all1.py" requires a file "D:/Subh/Work/check transspec/c1a_pass_pol_all1.nc" that does not have the same relative path.

Traceback (most recent call last):
  File ".\zipdir\NL\GUI\Plugin\Utilities.py", line 73, in pluginCaller
  File "C:\Program Files (x86)\QuantumWise\VNL-ATK-2015.0\Lib\site-packages\AddOns\JobManager\LocalPlugin\LocalPlugin.py", line 169, in createJobItem
    wrapped_script = LocalJobScript(script.path())
  File "C:\Program Files (x86)\QuantumWise\VNL-ATK-2015.0\Lib\site-packages\AddOns\JobManager\LocalPlugin\LocalJob.py", line 58, in __init__
    self._output_files = relativizePathsToScript(job_script_abspath, self._job_script.outputFilePaths())
  File "C:\Program Files (x86)\QuantumWise\VNL-ATK-2015.0\Lib\site-packages\AddOns\JobManager\LocalPlugin\LocalJob.py", line 140, in relativizePathsToScript
    raise Exceptions.NLFileError(err_msg)
NLFileError: "D:/Subh/new- for report only/work11-24-newfinal/analysis transspec spin test/c1a_pass_pol_all1.py" requires a file "D:/Subh/Work/check transspec/c1a_pass_pol_all1.nc" that does not have the same relative path.


This is what is being shown.

Thanks again! :)
Title: Re: Problem with job manager
Post by: Jess Wellendorff on December 2, 2015, 09:03
Thanks, the developer team is looking into it.
Title: Re: Problem with job manager
Post by: Subhban15 on December 2, 2015, 09:42
Okay! Great!

In the meanwhile I had another question, in the 2015 version the job manager starts all the work in parallel. This way if something goes wrong with the system, all the work done is lost.
In the previous version the job manager used to queue the jobs. Is that possible in this version? If yes, could you please tell me how to set it right?

Thanks!  :)
Title: Re: Problem with job manager
Post by: Jess Wellendorff on December 2, 2015, 10:15
1) The error message you see is this:
"D:/Subh/new- for report only/work11-24-newfinal/analysis transspec spin test/c1a_pass_pol_all1.py" requires a file "D:/Subh/Work/check transspec/c1a_pass_pol_all1.nc" that does not have the same relative path.
It means that the script you are running (c1a_pass_pol_all1.py) is reading an nc-file (c1a_pass_pol_all1.nc) that is not located in the same directory as the script. The Job Manager can currently not handle that situation. You need to move/copy c1a_pass_pol_all1.nc to the same directory as c1a_pass_pol_all1.py. Then it will work.

2) When you send a script to the Job Manager, there is an option for automatically starting the job, instead of queuing it. Would disabling this option help?
Title: Re: Problem with job manager
Post by: Subhban15 on December 2, 2015, 11:31
2) When you send a script to the Job Manager, there is an option for automatically starting the job, instead of queuing it. Would disabling this option help?

No, on deselecting that option the jobs don't start at all and for each job I have to manually start the job by clicking the start "arrow".
In previous job manager the jobs would simply be sent to the queue on selecting the "run queue" option and would run automatically.

And regarding the previous problem, I don't have access to the system, currently. I will confirm asap.
Title: Re: Problem with job manager
Post by: Anders Blom on December 2, 2015, 14:32
There is no queue option in the new Job Manager. It can be added to 2016.
Title: Re: Problem with job manager
Post by: Subhban15 on December 3, 2015, 06:38
Please do. It was a great feature. Thank you!