notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

CalledProcessError: in the DrizzlePac initialization steps

Open kasitennis opened this issue 4 years ago • 3 comments

I went through the procedure of the DrizzlePac initialization. And I had the following error message when I bring the best reference files for a given FLC file:

[]: subprocess.check_output('crds bestrefs --files ib2j02n5q_flc.fits --sync-references=1 --update-bestrefs', shell=True, stderr=subprocess.DEVNULL)

---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-9-5a063592aa14> in <module>
----> 1 subprocess.check_output('crds bestrefs --files ib2j02n5q_flc.fits --sync-references=1 --update-bestrefs', shell=True, stderr=subprocess.DEVNULL)

~/opt/anaconda3/envs/astroconda/lib/python3.6/subprocess.py in check_output(timeout, *popenargs, **kwargs)
    354 
    355     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 356                **kwargs).stdout
    357 
    358 

~/opt/anaconda3/envs/astroconda/lib/python3.6/subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
    436         if check and retcode:
    437             raise CalledProcessError(retcode, process.args,
--> 438                                      output=stdout, stderr=stderr)
    439     return CompletedProcess(process.args, retcode, stdout, stderr)
    440 

CalledProcessError: Command 'crds bestrefs --files ib2j02n5q_flc.fits --sync-references=1 --update-bestrefs' returned non-zero exit status 255.
-----------------------------------

I simply copy and paste the command line provided by this site. Could you let me know what I am missing?

Thanks,

-Soung

kasitennis avatar Feb 02 '21 13:02 kasitennis

@eslavich , are you familiar with CRDS error codes? Thanks!

cc @samanthalh

pllim avatar Feb 02 '21 14:02 pllim

CRDS doesn't return meaningful error codes (255 is used for all fatal errors). We'll need to see the output of that process to troubleshoot the problem. Run the same command in a cell like this:

!crds bestrefs --files ib2j02n5q_flc.fits --sync-references=1 --update-bestrefs

That should result in some helpful messages.

eslavich avatar Feb 02 '21 15:02 eslavich

It looks like @eslavich has it covered, but you're also welcome to submit an HST help desk ticket which will send your question to the experts who wrote the notebooks. Thanks!

cc @catherine-martlin

samanthalh avatar Feb 02 '21 16:02 samanthalh