Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalledProcessError: in the DrizzlePac initialization steps #155

Open
kasitennis opened this issue Feb 2, 2021 · 3 comments
Open

CalledProcessError: in the DrizzlePac initialization steps #155

kasitennis opened this issue Feb 2, 2021 · 3 comments

Comments

@kasitennis
Copy link

kasitennis commented Feb 2, 2021

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

@pllim
Copy link
Contributor

pllim commented Feb 2, 2021

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

cc @samanthalh

@eslavich
Copy link

eslavich commented Feb 2, 2021

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.

@samanthalh
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants