Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on importing matplotlib. Please help!! #353

Closed
MiraYugario opened this issue Apr 5, 2016 · 1 comment
Closed

Error on importing matplotlib. Please help!! #353

MiraYugario opened this issue Apr 5, 2016 · 1 comment
Labels

Comments

@MiraYugario
Copy link

When I give the command
import matplotlib.pyplot as plt
I am getting the following error

Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/matplotlib/init.py", line 1131, in
rcParams = rc_params()
File "/usr/local/lib/python2.7/site-packages/matplotlib/init.py", line 975, in rc_params
return rc_params_from_file(fname, fail_on_error)
File "/usr/local/lib/python2.7/site-packages/matplotlib/init.py", line 1100, in rc_params_from_file
config_from_file = _rc_params_in_file(fname, fail_on_error)
File "/usr/local/lib/python2.7/site-packages/matplotlib/init.py", line 1018, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/usr/local/lib/python2.7/site-packages/matplotlib/init.py", line 1000, in _open_file_or_url
encoding = locale.getdefaultlocale()[1]
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

How to fix this?

@bsipocz
Copy link
Member

bsipocz commented Apr 5, 2016

@MiraYugario - This is the issue tracker of the photutils package. Please stop posting unrelated issues. Please use the appropriate forums for these, like the Python users in Astronomy fb group, or stackoverflow or google.

E.g. have you tried the solutions that google pops up as the first hit from e.g. stackoverflow or from mpl's issue tracker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants