DenisCarriere / geocoder

:earth_asia: Python Geocoder
http://geocoder.readthedocs.org
MIT License
1.63k stars 288 forks source link

No module named builtins #318

Closed codyc4321 closed 7 years ago

codyc4321 commented 7 years ago

After sudo pip install geocoder, I cannot use the package:


In [1]: import geocoder
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-603a981d39f2> in <module>()
----> 1 import geocoder

/usr/local/lib/python2.7/dist-packages/geocoder/__init__.pyc in <module>()
     34 
     35 # CORE
---> 36 from geocoder.api import get, yahoo, bing, geonames, mapquest, google, mapbox  # noqa
     37 from geocoder.api import nokia, osm, tomtom, geolytica, arcgis, opencage  # noqa
     38 from geocoder.api import maxmind, ipinfo, freegeoip, ottawa, here, baidu, gaode, w3w  # noqa

/usr/local/lib/python2.7/dist-packages/geocoder/api.py in <module>()
      7 from geocoder.location import Location
      8 
----> 9 from geocoder.arcgis import ArcgisQuery
     10 from geocoder.baidu import BaiduQuery
     11 from geocoder.bing import BingQuery

/usr/local/lib/python2.7/dist-packages/geocoder/arcgis.py in <module>()
      6 import json
      7 
----> 8 from geocoder.base import OneResult, MultipleResultsQuery
      9 
     10 

/usr/local/lib/python2.7/dist-packages/geocoder/base.py in <module>()
      2 # coding: utf8
      3 from __future__ import absolute_import, print_function
----> 4 from builtins import str
      5 
      6 import requests

ImportError: No module named builtins
codyc4321 commented 7 years ago

package does not work after install

DenisCarriere commented 7 years ago

Added future to setup.py, should fix the issue in the next release.

codyc4321 commented 7 years ago

Thanks Denis!