---------------------------------------------------------------------------
ShapefileException Traceback (most recent call last)
<ipython-input-2-6c97cfa3ecd8> in <module>()
----> 1 centroids=shapefile.Reader("district_centroids.shp")
2 shapes=centroids.shapes()
/home/ubuntu/anaconda/lib/python2.7/site-packages/shapefile.pyc in __init__(self, *args, **kwargs)
228 if len(args) > 0:
229 if is_string(args[0]):
--> 230 self.load(args[0])
231 return
232 if "shp" in kwargs.keys():
/home/ubuntu/anaconda/lib/python2.7/site-packages/shapefile.pyc in load(self, shapefile)
261 self.shp = open("%s.shp" % shapeName, "rb")
262 except IOError:
--> 263 raise ShapefileException("Unable to open %s.shp" % shapeName)
264 try:
265 self.shx = open("%s.shx" % shapeName, "rb")
ShapefileException: Unable to open district_centroids.shp