strix-technica / ADSB-tools

Tools for ADS-B analysis, especially on the Raspberry Pi
GNU General Public License v2.0
9 stars 4 forks source link

Vincenty No Longer Supported #7

Open phipac opened 1 year ago

phipac commented 1 year ago

Good day! The latest release of geopy no longer supports Vincenty calculations. Attempting to run the plugin produces the following error:

Traceback (most recent call last): File "/etc/munin/plugins/dump1090_ac", line 30, in from geopy.distance import vincenty ImportError: cannot import name 'vincenty' from 'geopy.distance' (/usr/lib/python3/dist-packages/geopy/distance)

Geopy docs now state:

"Removed geopy.distance.vincenty, use geopy.distance.geodesic instead."

There is obviously some syntax difference, because merely changing vincenty to geodesic in the dump1090_ script produces another error:

"ValueError: Calculating distance between points with different altitudes is not supported"

I'm working on trying to figure out the syntax difference to make the change to the script, but my eyes are crossing. If anyone else can figure it out, that would be fantastic! Thank you.