kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 10 forks source link

Unable to import spaceKLIP package in a jupyter notebook #175

Closed asahooexo closed 4 months ago

asahooexo commented 4 months ago

I did a git pull to update my develop version and noticed that the requirements.txt has been updated, therefore followed instructions to create a new conda envrionment. I found that git lfs was required to complete the installation of pyklip package inside the environment. Also, I installed jupyter notebook inside this environment for accessing tutorial docs.

However, after installation I am unable to import spaceKLIP. Attaching the error message here:

(I have already updated my mast token. I am not sure why I see this message. )

Screen Shot 2024-05-20 at 11 59 43 AM
asahooexo commented 4 months ago

Can someone please let me know how to fix this error?

asahooexo commented 4 months ago

Got to know from @juliengirard that we have to change the path name in our bash profile, something local like export PYSYN_CDBS=‘/Users/Downloads/data/ for import to work.

I tested that the local path works for me.

kammerje commented 4 months ago

Does it work for you now? Seems like it was related to an incomplete installation of PySynphot.

asahooexo commented 4 months ago

@kammerje yes it seems to work for me now, though unable to do full reduction with dev version. Getting same error as seen in issue #172 .

JarronL commented 4 months ago

Just to clarify, this is a synphot/stsynphot path issue. The separate pysynphot is no longer a dependency.

See: https://stsynphot.readthedocs.io/en/latest/#installation-and-setup