what3words / w3w-python-wrapper

Python wrapper for the what3words API
https://docs.what3words.com/api/v3/
MIT License
79 stars 14 forks source link

Which Python versions are supported? #6

Closed mgd722 closed 7 years ago

mgd722 commented 8 years ago

The docs should state that this module can be used in both Python 2 and 3 (if this is the case).

tsamaya commented 8 years ago

Tested on version 2.7; travis-ci planned within a couple of days to test versions from 2.6 to 3.4

toniengelhardt commented 7 years ago

Seems like the current version doesn't work on Py3 because it depends on poster-0.8.1. Getting the following error from pip when trying to install on Python 3.5.2:

Collecting poster Using cached poster-0.8.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/var/folders/2n/90xsl63x57bg30n9x03gjnqw0000gn/T/pip-build-cvncr6p7/poster/setup.py", line 2, in import poster File "/private/var/folders/2n/90xsl63x57bg30n9x03gjnqw0000gn/T/pip-build-cvncr6p7/poster/poster/init.py", line 29, in import poster.streaminghttp File "/private/var/folders/2n/90xsl63x57bg30n9x03gjnqw0000gn/T/pip-build-cvncr6p7/poster/poster/streaminghttp.py", line 61 print "send:", repr(value) ^ SyntaxError: invalid syntax

tsamaya commented 7 years ago

Tested with version 2.7, now stated in Doc.

PR welcome to upgrade this wrapper 😉

In the meantime, Denis Carriere's geocoder is compatible with python 3 and with our API : https://github.com/DenisCarriere/geocoder

tsamaya commented 7 years ago

thanks to @joedborg now the lib support python 3.4 to 3.6