Jump to content
Sign in to follow this  

import generates divide by 0 error

Recommended Posts

I've been playing around with the Python Skyfield library, which can track planets and satellites. My first goal was to identify what objects are overhead at any given moment. My programs seem to work just fine when I run them from the command prompt in Windows. I thought it would be a good learning experience to incorporate them into Delphi so I could get better GUI (i.e., more than just text) output. I started with the simple demos - the ones with the 2 Memos that execute the script from Memo1 and place the output in Memo2. However, the very first line of my script always results in a "divide by 0" error. That line is:

import skyfield.api

This works fine from a Windows command prompt, and also within the Python interpreter.


My original program actually uses

from skyfield.api import load, Topos

but that also generates a divide by 0 error.


Where should I look to debug this issue?


Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this