rzellem / EXOTIC

EXOplanet Transit Interpretation Code
Other
84 stars 45 forks source link

Can't Run EXOTIC Colab in Google Drive #855

Closed lehenbnw closed 3 years ago

lehenbnw commented 3 years ago

I've been having an issue recently where every time try to run the EXOTIC Colab Google Drive program it keeps throwing errors. It had worked fine when I used it last week but now it gives me runtime errors with each section I try to run.

When I run the Install step it runs for a minute and then gives the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-8-65c215274846> in <module>()
     10 from astropy.io import fits
     11 get_ipython().system('pip install astroscrappy')
---> 12 from astroscrappy import detect_cosmics
     13 from scipy.ndimage import label
     14 from bokeh.plotting import figure, output_file, show

1 frames
/usr/local/lib/python3.7/dist-packages/astroscrappy/__init__.py in <module>()
     67 # For egg_info test builds to pass, put package imports here.
     68 if not _ASTROPY_SETUP_:
---> 69     from .astroscrappy import *
     70     from .utils import *
     71 

/usr/local/lib/python3.7/dist-packages/astroscrappy/astroscrappy.cpython-37m-x86_64-linux-gnu.so in init astroscrappy.astroscrappy()

AttributeError: type object 'astroscrappy.astroscrappy.array' has no attribute '__reduce_cython__

When I run the target lookup it gives me this error:

Please enter the name of your exoplanet target: HAT-P-53b

Looking up HAT-P-53 b on the NASA Exoplanet Archive. Please wait....
Successfully found HAT-P-53 b in the NASA Exoplanet Archive!
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-6-cd2d624dad45> in <module>()
     50   p_param_string = targ.planet_info(fancy=True)
     51   planetary_params = "\"planetary_parameters\": "+p_param_string
---> 52   p_param_dict = json.loads(p_param_string)
     53   planetary_params = fix_planetary_params(p_param_dict)
     54   print(f"\nNASA Exoplanet Archive planetary parameters for {target}:\n")

NameError: name 'json' is not defined

And when I try to run the data reduction regardless of the errors it gives me this:

Press enter to run the Hat-p-32b sample data, or enter a path as described above.Astronomy/Exoplorers/2021d08d08PatBoyce_HAT-53_b Lehenbauer
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-9d56b44a18f4> in <module>()
    346   p = "sample-data/HatP32Dec202017"
    347 
--> 348 p = check_dir(os.path.join("/content/drive/My Drive/", p))
    349 output_dir = os.path.join(p, "EXOTIC_output/")
    350 

NameError: name 'os' is not defined

Again, it was working fine last week, but when I tried to run it today this is all I could get.

lehenbnw commented 3 years ago

Ok, I tried running it again after factory resetting the runtime and it gave me a different error around the same place.

ValueError                                Traceback (most recent call last)
<ipython-input-1-63a058aaa278> in <module>()
     11 from astropy.io import fits
     12 get_ipython().system('pip install astroscrappy')
---> 13 from astroscrappy import detect_cosmics
     14 from scipy.ndimage import label
     15 from bokeh.plotting import figure, output_file, show

/usr/local/lib/python3.7/dist-packages/astroscrappy/__init__.py in <module>()
     67 # For egg_info test builds to pass, put package imports here.
     68 if not _ASTROPY_SETUP_:
---> 69     from .astroscrappy import *
     70     from .utils import *
     71 

__init__.pxd in init astroscrappy.astroscrappy()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

This happens about 2 minutes in while working on the from io import BytesIO line.

rzellem commented 3 years ago

@lehenbnw - is this still an issue?

lehenbnw commented 3 years ago

Sorry I forgot to update, no it was solved. Talked to Kalee and it was an issue with one of the packages on Collab.

rzellem commented 3 years ago

Thanks, Leon!

Closing this issue now.

From: lehenbnw @.> Reply-To: rzellem/EXOTIC @.> Date: Monday, September 27, 2021 at 12:55 PM To: rzellem/EXOTIC @.> Cc: "Zellem, Robert T (US 3262)" @.>, Comment @.***> Subject: [EXTERNAL] Re: [rzellem/EXOTIC] Can't Run EXOTIC Colab in Google Drive (#855)

Sorry I forgot to update, no it was solved. Talked to Kalee and it was an issue with one of the packages on Collab.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/rzellem/EXOTIC/issues/855*issuecomment-928220668__;Iw!!PvBDto6Hs4WbVuu7!cUWjiWmnSzz6Ua8ocXA5do5pRIIZ6AHGNu4Z8mU68zbpVbUaRAyTCtU0q5dtWgAG82w$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/ADDK7N3Q5ODPMW2B2IQDWWTUEDD2ZANCNFSM5DHKJEBQ__;!!PvBDto6Hs4WbVuu7!cUWjiWmnSzz6Ua8ocXA5do5pRIIZ6AHGNu4Z8mU68zbpVbUaRAyTCtU0q5dtr__UucQ$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.us/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!PvBDto6Hs4WbVuu7!cUWjiWmnSzz6Ua8ocXA5do5pRIIZ6AHGNu4Z8mU68zbpVbUaRAyTCtU0q5dtP8dLgAg$ or Androidhttps://urldefense.us/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!PvBDto6Hs4WbVuu7!cUWjiWmnSzz6Ua8ocXA5do5pRIIZ6AHGNu4Z8mU68zbpVbUaRAyTCtU0q5dtG8GtxK8$.