def __init__(self, *args, **kwargs):
        if not self.point_field:
            raise ImproperlyConfigured("You should provide `point_field` in "
                                       "your subclassed geo-spatial filter "
                                       "class.")
        try:
            from haystack.utils.geo import D, Point
            self.D = D
            self.Point = Point
        except __HOLE__ as e:  # pragma: no cover
            warnings.warn("Make sure you've installed the `libgeos` library.\n "
                          "(`apt-get install libgeos` on linux, or `brew install geos` on OS X.)")
            raise e
dataset/ETHPy150Open inonit/drf-haystack/drf_haystack/filters.py/BaseHaystackGEOSpatialFilter.__init__