Reputation: 1192
There are some pretty helpful links in installing basemap for python, however I seem to be encountering an issue towards the end of installation when trying to test if the installation has worked or not. I'm installing on a Mac.
The error message I'm seeing is:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % locale name
Admittedly I'm still not savvy with knowing my way around Macs and installing the anaconda suite took me a while to figure out. In my .profile file I added the following lines:
export LC_ALL=en_US.UTF-8
epxort LANG=en_US.UTF-8
Still didn't change anything. Where am I going wrong?
Upvotes: 2
Views: 395
Reputation: 2014
You should try to set the locale of python before importing basemap
import locale
locale.setlocale(locale.LC_ALL, 'en_US')
Upvotes: 1