Sigm0oid / dynamodb-geo.py

A python port of awslabs/dynamodb-geo, for dynamodb geospatial querying
MIT License
31 stars 20 forks source link

not backwards compatible with 2.7 #38

Closed promediacorp closed 3 years ago

promediacorp commented 4 years ago

i know, i know, i should have migrated to 3.x ;)

but in the meantime, im having trouble getting it to work on 2.7, here is the error:

File "/Users/myusername/git/myproject/venv/lib/python2.7/site-packages/dynamodbgeo/s2/S2Manager.py", line 6
    def generateGeohash(self, geoPoint: 'GeoPoint'):

SyntaxError: invalid syntax

any suggestions to get it to work with 2.7?

Sigm0oid commented 4 years ago

Hi Promediacorp, The error you're seeing is due to python3 type hint style used here that is considered as syntax violation for python2.7.

As Python 2 End of Life Announced as January 1st 2020(Even AWS does not support creating new lambda's in 2.7 anymore). We decided initially to support mainly python3.x +. Sorry for the inconvenience!