You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get error when trying to download data using astroquery.eso #1580
I am attempting to use astroquery.eso to grab data from the ESO archive. Unfortunately, even after following the examples, I find that I get an error when I try to grab the data. There isn't much to troubleshoot with this command so I quickly got to a point where I am stuck.
I have no issues connecting to the ESO archive and receive the notification emails that I am authorized to download all the files I have requested.
I am doing this in Jupyter notebooks using python version 3.7.2, and have attempted this with astroquery version 0.3.9 and 0.4.dev0 with the same error.
changed the title [-]Get error when trying to download data using `astroquery.eso`[/-][+]Get error when trying to download data using astroquery.eso[/+]on Nov 6, 2019
I'm trying to reproduce, and it would be easier to do it with using the same program id. Could you share it, or it's still proprietary data? (you can also e-mail it if you like)
@bsipocz I am now getting this same error on other data as well. Here are three specific dataset IDs that fail when trying to use astroquery, but work if I try to download them from the archive directly:
I have tried other requests recently and it works fine, but I have not actively cleared any cache. Anyway, if cache is related, I might have requested a dataset here for which I previously did not complete the full download... I can try to recreate such a scenario...
When looking at this piece of code, it seems to me that the length = None case is badly handled and can certainly break as shown in the traceback above:
Activity
[-]Get error when trying to download data using `astroquery.eso`[/-][+]Get error when trying to download data using astroquery.eso[/+]bsipocz commentedon Nov 6, 2019
I'm trying to reproduce, and it would be easier to do it with using the same program id. Could you share it, or it's still proprietary data? (you can also e-mail it if you like)
kjbrooks commentedon Nov 6, 2019
The program_id is 094.C-0625(A).
Thanks!
kjbrooks commentedon Nov 22, 2019
@bsipocz Is there an update on this? This is still an issue for me. Thanks!
kjbrooks commentedon Dec 2, 2019
@bsipocz I am now getting this same error on other data as well. Here are three specific dataset IDs that fail when trying to use astroquery, but work if I try to download them from the archive directly:
Cheers!
Knusper commentedon Feb 1, 2020
I get the same error when downloading MASCOT all sky images:
jwoillez commentedon Apr 17, 2020
@kjbrooks @Knusper Does clearing your cache at
~/.astropy/cache/astroquery/Esohelp?Knusper commentedon Apr 17, 2020
I have tried other requests recently and it works fine, but I have not actively cleared any cache. Anyway, if cache is related, I might have requested a dataset here for which I previously did not complete the full download... I can try to recreate such a scenario...
saimn commentedon Apr 17, 2020
When looking at this piece of code, it seems to me that the
length = Nonecase is badly handled and can certainly break as shown in the traceback above:astroquery/astroquery/query.py
Lines 286 to 308 in 52b490c
masolimano commentedon Oct 12, 2020
Hello there, I think I'm having a related issue. I am trying to retrieve the following files:
using the command
eso.retrieve_data(dpid_list, unzip=False). But I get the followingTypeError:I'm using astroquery version 0.4.1.
Any workaround?
bsipocz commentedon Dec 11, 2023
Addressed by #2681