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

Missing dependence on pysynphot #266

Open
rmjarvis opened this issue Jan 8, 2020 · 2 comments
Open

Missing dependence on pysynphot #266

rmjarvis opened this issue Jan 8, 2020 · 2 comments

Comments

@rmjarvis
Copy link

rmjarvis commented Jan 8, 2020

I've been looking at the new WebbPSF code for rendering WFIRST PSF images here, and running their script, I got an ImportError from poppy:

$ python wim_psf_basic_f0v_even.py 
Script to generate WFIRST imaging PSFs for each SCA in the FPA
Please ensure that updates to the zernike file are copied to 
{$HOME}/Projects/WebbPSF/webbpsf-data/WFI/wim_zernikes_cycle8.csv
Traceback (most recent call last):
  File "wim_psf_basic_f0v_even.py", line 139, in <module>
    s_src = webbpsf.specFromSpectralType(sp_type, catalog='phoenix')
  File "/anaconda3/envs/py3/lib/python3.6/site-packages/poppy/utils.py", line 1433, in specFromSpectralType
    import pysynphot
ModuleNotFoundError: No module named 'pysynphot'

Installing pysynphot fixed the problem (or at least got farther before hitting a different error), but it seems like poppy is missing a dependence on pysynphot in the pip and/or conda specification. (I installed webbpsf via conda, which in turn installed poppy.)

@mperrin
Copy link
Owner

mperrin commented Jan 8, 2020

Hi @rmjarvis, could you please re-file this issue on the spacetelescope repo: https://github.com/spacetelescope/webbpsf

That’s our main development repository now and is the best place to file issues. Thanks much for this report!

@rmjarvis
Copy link
Author

rmjarvis commented Jan 8, 2020

OK!

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

No branches or pull requests

2 participants