question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to load timescale with builtin=False

See original GitHub issue

Trying to follow along with the example here to manually update the IERS file and load.timescale(builtin=False) appears to fail without attempting to download the file:

Python 3.9.0 (default, Nov 15 2020, 14:28:56) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from skyfield.api import load
>>> ts = load.timescale(builtin=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/brad/anaconda3/envs/test/lib/python3.9/site-packages/skyfield/iokit.py", line 354, in timescale
    with self.open('finals2000A.all') as f:
  File "/home/brad/anaconda3/envs/test/lib/python3.9/site-packages/skyfield/iokit.py", line 312, in open
    return open(path, mode)
FileNotFoundError: [Errno 2] No such file or directory: './finals2000A.all'

Based on the documentation, I expected this:

>>> ts = load.timescale(builtin=False)
[#################################] 100% finals2000A.all

A regular call to load.timescale() works normally.

Versions I’ve reproduced this error on:

  • Python 3.8.5, 3.9.0
  • skyfield 1.31, 1.32

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
me-at-git-hubcommented, Nov 20, 2020

Just tried that. Though I am embarassed for not having tried that sooner, it is a good type of embarassed. It worked of course!

Thank you for your generosity toward someone with far far less experience than yourself.

1reaction
bradseasecommented, Nov 18, 2020

Just tested the new version and everything looks good on my end now. Thanks for the quick fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dates and Time — Skyfield documentation - Rhodes Mill
The Timescale object returned by load.timescale() manages the conversions between different time scales and is also how the programmer builds Time objects ...
Read more >
Skyfield, how to use https:// instead of ftp
According to the docs you should be able to do a from skyfield.api import load ; load.timescale(builtin=False) but this fails for me also....
Read more >
skyfield-data - PyPI
... load.timescale(builtin=False) # this command won't download the IERS file. For the record, using buitin=True as an argument to load the timescale data ......
Read more >
Source code for caput.time - Read the Docs
_timescale = self.load.timescale(builtin=False) except IOError: warnings.warn( "Could not get timescale data from an official source.
Read more >
Genetic circuit characterization and debugging using RNA‐seq
This analysis reveals several mechanistic causes of circuit failures. ... number of RNAPs passing that position that occur on the timescale of degradation)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found