geopy dependency
The geopy package has mad the conda installation rather difficult and seems to be a rather superfluous dependency.
Calculating the distance can be done to the same accuracy with either pyproj (included in required current basemap or required as separate package in future basemap releases) or with the Haversine or similar formula approximately without any dependency.
Proposal: Replace geopy dependency (geopy.distance) by pyproj dependency (pyproj.Geod(ellps='WGS84'))
pyproj is available in conda (not conda-forge!)
Comments (5)
-
-
The ssl issue may have a different cause. It looks like that the url won't update. So switching to http makes it request for https
-
- changed status to resolved
Replace geopy distance calculation with pyproj. Fixes issue
#34pyproj is needed anyway for basemap, so one dependency less.
→ <<cset c7d4817da983>>
-
Merged in joernu76/mss (pull request #46)
Replace geopy distance calculation with pyproj. Fixes issue
#34→ <<cset 8b02e0d8dada>>
-
implemented .config/mss directory in user home directory as default path for config files. see issue
#39and issue#34→ <<cset bac4b8525bef>>
- Log in to comment
one of the first imports in geopy.geocoders.base is to import SSLError
unfortunately current releases of ssl are not new enough, there were accidentally removed client methods from the 1.0.1 and 1.0.2 branches of the library.
This is the same reason why curl is broken using ssl.
A fix for ssl is in place, https://github.com/openssl/openssl/commit/133138569f37d149ed1d7641fe8c75a93fded445
Anyway big packages which have lots of dependencies and we have poor dependencies on should become replaced.