old_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import
  from django.utils.encoding import smart_str
  from geopy import geocoders
  from geopy.geocoders.base import GeocoderResultError
  
  class Error(Exception):
      pass
  
  
  def google_v3(address):
      """
      Given an address, return ``(computed_address, (latitude, longitude))``
      tuple using Google Geocoding API v3.
      """
      try:
          g = geocoders.GoogleV3()
          address = smart_str(address)
          return g.geocode(address, exactly_one=False)[0]
      except (UnboundLocalError, ValueError, GeocoderResultError) as e:
          raise Error(e)
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import
  from django.utils.encoding import smart_str
  from geopy import geocoders
  from geopy.geocoders.base import GeocoderServiceError
  
  class Error(Exception):
      pass
  
  
  def google_v3(address):
      """
      Given an address, return ``(computed_address, (latitude, longitude))``
      tuple using Google Geocoding API v3.
      """
      try:
          g = geocoders.GoogleV3()
          address = smart_str(address)
          return g.geocode(address, exactly_one=False)[0]
      except (UnboundLocalError, ValueError, GeocoderServiceError) as e:
          raise Error(e)
  
subject: fix ImportError: cannot import name GeocoderResultError problem