[Note] flatlib IndexError: tuple index out of range -‘lonspeed’: sweList[3],

This issue is reported at flatlib‘s Issues page, but the solution is not googleable, so here it is. Suggested by joaoventura.

The problem is with flatlib.ephem.swe sweObject() method, it does not cooperate with swisseph‘s calc_ut() method any more.

To solve it, you need version 2.00.00-2 of pyswisseph, and not 2.0x-something you automatically install with flatlib.

pip uninstall pyswisspeh
pip install pyswisseph==2.00.00-2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.