`geopy` 2.0 does not support ` vincenty
darribas opened this issue · 1 comments
darribas commented
It seems that the 2.0 version of geopy
does not support the vincenty
distance (link).
On a fresh install, I get:
In [1]: import urbanaccess
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-ddb7d43afadf> in <module>
----> 1 import urbanaccess
/opt/conda/lib/python3.7/site-packages/urbanaccess/__init__.py in <module>
1 from .gtfs.load import *
----> 2 from .gtfs.network import *
3 from .gtfs.gtfsfeeds_dataframe import *
4 from .gtfs.headways import *
5 from .osm.load import *
/opt/conda/lib/python3.7/site-packages/urbanaccess/gtfs/network.py in <module>
5
6 from urbanaccess.utils import log, df_to_hdf5, hdf5_to_df
----> 7 from urbanaccess.network import ua_network
8 from urbanaccess import config
9 from urbanaccess.gtfs.gtfsfeeds_dataframe import gtfsfeeds_dfs
/opt/conda/lib/python3.7/site-packages/urbanaccess/network.py in <module>
2 from sklearn.neighbors import KDTree
3 import pandas as pd
----> 4 from geopy.distance import vincenty
5
6 from urbanaccess.utils import log, df_to_hdf5, hdf5_to_df
ImportError: cannot import name 'vincenty' from 'geopy.distance' (/opt/conda/lib/python3.7/site-packages/geopy/distance.py)
In [2]: import geopy
In [3]: geopy.__version__
Out[3]: '2.0.0'
In [4]:
Might be an easy fix to update to recommended distance?