Closed zemogle closed 8 years ago
Maybe @eteq or @mhvk would know, since it looks like the problem is occurring in astropy/utils/iers/iers.py
.
I was thinking that too. Maybe clearing the cached file would be enough. I suspect the download only partially happened and something got itself in a pickle.
If the IERS table was incompletely downloaded/corrupt, you can delete it by clearing the astropy cache.
If there is nothing in the astropy cache that you care about, I think you can clear it by deleting the files in ~/.astropy/cache/download
(at least that's what I've done when I have similar problems). I don't know if that properly updates the download url map.
So, I manually ran all the code in _get_IERS_A_table
line by line and setting cache=False
(i.e. force the file to download again) works. Clearly the cached version of the IERS A table was mess, and clearing out all the cache fixed that nicely.
Thanks!
Ps. I love astroplan - I'm ditching pyephem in favour of it :grinning:
Excellent, I'm glad the fix wasn't too painful.
I'm glad you love it! Would you mind sharing what you're doing with it on raspberry pi? I'm excited to see the code proliferating.
Sure! I've installed an AllSky camera in a Dark Sky Reserve. Its being controlled by the Raspberry Pi using only Python (with the communication going through INDi). astropy
has made my life so much simpler.
The biggest problem is making the USB cables waterproofed (I live in Wales) :umbrella:
Awesome. Are you using astroplan
to compute sunrise/set times?
Yes indeed! Its not in the live version yet but hopefully it will be soon.
On 7 April 2016 at 19:55, Brett M. Morris notifications@github.com wrote:
Awesome. Are you using astroplan to compute sunrise/set times?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/astropy/astroplan/issues/160#issuecomment-207049132
Edward Gomez - Education Director Las Cumbres Observatory Global Telescope Network, UK +44 (0) 29 2087 5121
I'm getting this weird problem. I've uninstalled and re-pip installed. I've also got the latest development version.
I'm running
python==2.7
,astropy==1.1.2
andnumpy==1.11.0
on a Raspberry Pi (Raspbian).