Gideon Aswani
2018-10-17 10:14:51 UTC
I am getting the following error when I import Basemap from
mpl_toolkits.basemap
KeyError Traceback (most recent call last)<ipython-input-4-436bebfa77d4> in <module>() 9 from matplotlib.patches import Polygon 10 from matplotlib.collections import PatchCollection---> 11 from mpl_toolkits.basemap import Basemap 12 from scipy import stats 13 import matplotlib.patches as mpatches
~/anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py in <module>() 153 154 # create dictionary that maps epsg codes to Basemap kwargs.--> 155 pyproj_datadir = os.environ['PROJ_LIB'] 156 epsgf = open(os.path.join(pyproj_datadir,'epsg')) 157 epsg_dict={}
~/anaconda3/lib/python3.6/os.py in __getitem__(self, key) 667 except KeyError: 668 # raise KeyError with the original key value--> 669 raise KeyError(key) from None 670 return self.decodevalue(value) 671
KeyError: 'PROJ_LIB'
How do I resolve this issue?
mpl_toolkits.basemap
KeyError Traceback (most recent call last)<ipython-input-4-436bebfa77d4> in <module>() 9 from matplotlib.patches import Polygon 10 from matplotlib.collections import PatchCollection---> 11 from mpl_toolkits.basemap import Basemap 12 from scipy import stats 13 import matplotlib.patches as mpatches
~/anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py in <module>() 153 154 # create dictionary that maps epsg codes to Basemap kwargs.--> 155 pyproj_datadir = os.environ['PROJ_LIB'] 156 epsgf = open(os.path.join(pyproj_datadir,'epsg')) 157 epsg_dict={}
~/anaconda3/lib/python3.6/os.py in __getitem__(self, key) 667 except KeyError: 668 # raise KeyError with the original key value--> 669 raise KeyError(key) from None 670 return self.decodevalue(value) 671
KeyError: 'PROJ_LIB'
How do I resolve this issue?
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/a46c6160-fafc-4e58-b6ef-ea5073a19b55%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/a46c6160-fafc-4e58-b6ef-ea5073a19b55%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.