Discussion:
[conda] Trouble importing Basemap
Gideon Aswani
2018-10-17 10:14:51 UTC
Permalink
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?
--
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.
Mário Costa
2018-10-17 10:27:54 UTC
Permalink
Hi Gideon,

Did you read the message in the top of the forum ?

If this is a specific issue of a conda package, you wont get an answer
here, search for the github feedstock repository and post there your issue.
Do some investigation first, as it might not be a packaging issue, and
provide more context.

Good luck.
Post by Gideon Aswani
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?
--
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/4efe63c2-014a-4d2d-8c4c-bc27beec9779%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Gideon Aswani
2018-10-17 11:26:37 UTC
Permalink
I have tried the several suggestions posted on github feedstock repository,
the error still persists
Post by Gideon Aswani
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?
--
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/92ffe004-49c7-47b1-9c81-339eb359cb4d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...