whosonfirst/py-mapzen-whosonfirst-search

Index out of range error

Closed this issue · 0 comments

WARNING:root:remove tag 'ne:level' because ES suffers from E_EXCESSIVE_CLEVERNESS
Traceback (most recent call last):
  File "/usr/local/bin/wof-es-index", line 5, in <module>
    pkg_resources.run_script('mapzen.whosonfirst.search==0.07', 'wof-es-index')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/mapzen.whosonfirst.search-0.07-py2.7.egg/EGG-INFO/scripts/wof-es-index", line 43, in <module>

  File "build/bdist.linux-x86_64/egg/mapzen/whosonfirst/search/__init__.py", line 295, in index_files
  File "build/bdist.linux-x86_64/egg/elasticsearch/helpers/__init__.py", line 182, in bulk
  File "build/bdist.linux-x86_64/egg/elasticsearch/helpers/__init__.py", line 110, in streaming_bulk
  File "build/bdist.linux-x86_64/egg/mapzen/whosonfirst/search/__init__.py", line 280, in prepare_files_bulk
  File "build/bdist.linux-x86_64/egg/mapzen/whosonfirst/search/__init__.py", line 269, in prepare_file_bulk
  File "build/bdist.linux-x86_64/egg/mapzen/whosonfirst/search/__init__.py", line 81, in prepare_feature_bulk
  File "build/bdist.linux-x86_64/egg/mapzen/whosonfirst/search/__init__.py", line 146, in prepare_geojson
IndexError: list index out of range