Skip to content

Skyfield >= 1.50 can cause "OverflowError: Python int too large to convert to C long" #1086

@aendie

Description

@aendie

Running my Planet Visibility charts as usual looking for anything unusual, I bumped into a new error that is caused with Skyfield versions 1.50, 1.51, 1.52 and 1.53 (with a different line number in the last two cases).

First: my apologies for posting just screen dumps here. I only want to demonstrate what a good clean run looks like with Skyfield 1.49, and then show you the error listings with Skyfield 1.50 and 1.51, and then with Skyfield 1.52 and 1.53 in the hope that the last few lines of the traceback log might reveal something useful to you. For everyone else, the good news is that Skyfield 1.49 works perfectly for my use case.

The terminal log with Skyfield 1.49 - this is correct and how it should always be - I also turned off multiprocessing for all the following terminal log demonstrations:

Image

The terminal log with Skyfield 1.50 or 1.51 throw the OverflowError: Python int too large to convert to C long error in timelib.py line 569 as follows:

Image

The terminal log with Skyfield 1.52 or 1.53 throw the OverflowError: Python int too large to convert to C long error in timelib.py line 566 as follows:

Image

I hope that this OverflowError alert from me is helpful to induce corrective investigation into the cause of this crash.
For information, I am using Python version 3.13.0
And I will happily re-test with future Skyfield versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions