---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
TypeError: expected a writable bytes-like object
The above exception was the direct cause of the following exception:
SystemError Traceback (most recent call last)
<ipython-input-12-13d808017274> in <module>()
11 lats = customer['lat']
12
---> 13 x, y = map(lons, lats)
14
15 map.scatter(x, y, marker='D',color='m')
/home/ken/anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py in __call__(self, x, y, inverse)
1146 except TypeError:
1147 y = [_dg2rad*yy for yy in y]
-> 1148 xout,yout = self.projtran(x,y,inverse=inverse)
1149 if self.celestial and inverse:
1150 try:
/home/ken/anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/proj.py in __call__(self, *args, **kw)
284 outxy = self._proj4(xy, inverse=inverse)
285 else:
--> 286 outx,outy = self._proj4(x, y, inverse=inverse)
287 if inverse:
288 if self.projection in ['merc','mill','gall']:
/home/ken/anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/pyproj.py in __call__(self, *args, **kw)
386 _proj.Proj._inv(self, inx, iny, radians=radians, errcheck=errcheck)
387 else:
--> 388 _proj.Proj._fwd(self, inx, iny, radians=radians, errcheck=errcheck)
389 # if inputs were lists, tuples or floats, convert back.
390 outx = _convertback(xisfloat,xislist,xistuple,inx)
_proj.pyx in _proj.Proj._fwd (src/_proj.c:1571)()
SystemError: <class 'RuntimeError'> returned a result with an error set