Closed brunobord closed 5 years ago
... and it's back up.
I feel silly, now, I've tried for about 30mn and now it works and downloads up-to-date files.
Before I hit "close" for this issue, would you confirm that I could avoid trying to download the files by using a custom Loader like this?
load = Loader('.', expire=False)
ts = load.timescale()
I'm planning for the next version of Skyfield to switch to carrying those files inline, and by default to use the inline files unless the user insists that they need to be brought up to date. I'll comment here on this issue once a new version is out that includes that feature! Thanks for reporting the difficulty.
excellent! thank you very much!
It seems like https://maia.usno.navy.mil/ is blocked in many counties outside the US: https://asm.ca.com/en/checkit.php Here in Israel Skyfield is essentially unusable without a VPN. This issue has to be fixed asap.
Could someone try installing Skyfield with:
pip install https://github.com/skyfielders/python-skyfield/archive/master.zip
and see if you can now load a timescale with load.timescale(builtin=True)
and avoid needing to download USNO files? Thanks!
Hi, thanks for the quick reply! I tried running load.timescale(builtin=True)
on a fresh ubuntu docker container with no error, but when I tried loading the current time with load.timescale(buitin=True).now() I got the following error:
`>>> ts.now() Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) AttributeError: 'datetime.date' object has no attribute 'searchsorted'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
I get the same error when executingload.timescale(buitin=True).utc(year=2001)
When running the command without buitin=True
I get no errors.
Using Python 3
@HelloWorldIL Thanks! I have turned your example code into a formal test and fixed the issue. Could you try again?
@brandon-rhodes Repeating the test and executing load.timescale(builtin=True).now()
on a fresh ubuntu container with Skyfield installed via the command pip3 install https://github.com/skyfielders/python-skyfield/archive/master.zip
, I now get no errors!
This is fantastic for anybody using Skyfield outside the US and for anytime the servers are down. Thank you!
Wonderful! I'll do a release today to make the feature available.
I have just released https://pypi.org/project/skyfield/1.11/ — enjoy!
@brandon-rhodes Thanks!
How to reproduce
Notes
deltat.data
file that we can find on this repository looks obsoleteAre there any mirrors available or alternative data sources?