stella icon indicating copy to clipboard operation
stella copied to clipboard

DownloadSets not found

Open cmurray-astro opened this issue 2 years ago • 7 comments

Hello! Following your documentation for Creating A New CNN, after pip installing stella (version=0.0.5) I get the following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/var/folders/04/6pd9ml351599_h45qtqtg_7m0001md/T/ipykernel_64986/407614620.py in <module>
      3 
      4 # download flare catalog
----> 5 download = stella.DownloadSets(fn_dir=data_dir)
      6 download.download_catalog()
      7 # download light curve files

AttributeError: module 'stella' has no attribute 'DownloadSets'

But when I install stella from source it works. Perhaps a version issue with pip?

cmurray-astro avatar Mar 11 '22 02:03 cmurray-astro

Hi there! This is a test of github actions.

github-actions[bot] avatar Mar 11 '22 02:03 github-actions[bot]

Hi @cmurray-astro ! The latest version on PyPI (which is consistent with the source code here) is version == 0.1.0. Could you try installing that version and seeing if DownloadSets is there? Thanks!

afeinstein20 avatar Mar 11 '22 14:03 afeinstein20

Interesting! When I try to pip install version=0.1.0 (via a requirements file in a new environment) I get a conflict between stella and other packages. e.g.,:

ERROR: Cannot install -r requirements.txt (line 3) and -r requirements.txt (line 8) because these package versions have conflicting dependencies.

The conflict is caused by:
    lightkurve 2.1.0 depends on scipy>=1.7; python_version >= "3.8" and python_version < "3.11"
    stella 0.1.0 depends on scipy==1.4.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Is there a reason that stella requires scipy=1.4.1? Also, why does pip install stella collect version 0.0.5?

cmurray-astro avatar Mar 11 '22 21:03 cmurray-astro

will add that it all works when I install from github, e.g.: pip install git+https://github.com/afeinstein20/stella.git

cmurray-astro avatar Mar 11 '22 21:03 cmurray-astro

Ohh okay, I thought I had updated stella to work with the latest lightkurve version, but I can check that out this week and hopefully fix that in the requirements file! Thanks for pointing that out!

afeinstein20 avatar Mar 21 '22 13:03 afeinstein20

I have this same problem, and it doesn't fix by installing stella from

pip install git+https://github.com/afeinstein20/stella.git

image

mcregogarcia avatar Sep 30 '23 09:09 mcregogarcia

@afeinstein20 pinging you to resurface this issue -- can you update stella to use the latest lightkurve version? The Hello Universe notebook example has long been broken, and I think this would be the easiest way to fix it

cmurray-astro avatar Nov 17 '23 15:11 cmurray-astro