Traceback (most recent call last):


 "ershou.py", line 135, in <module>

areas.extend(areas_of_district)
TypeError: 'NoneType' object is not iterable`

Traceback (most recent call last):


 "/home/s.fanghaenel/anaconda3/envs/route_planer/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-104-a0dfd81a99ea>", line 1, in <module>

route_length_km = sum([graph.edges[u][v][0]['length'] for u, v in zip(route, route[1:])]) / 1000.


 "<ipython-input-104-a0dfd81a99ea>", line 1, in <listcomp>

route_length_km = sum([graph.edges[u][v][0]['length'] for u, v in zip(route, route[1:])]) / 1000.


 "/home/s.fanghaenel/anaconda3/envs/route_planer/lib/python3.6/site-packages/networkx/classes/reportviews.py", line 1106, in __getitem__

u, v, k = e
TypeError: 'numpy.int64' object is not iterable
