Issue 1:
I want to import matplotlib to django project. I add "import matplotlib.pyplot as plt" in the front of the code and I get this error:

Traceback:

File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response

resolver_match = resolver.resolve(request.path_info)

File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in resolve

for pattern in self.url_patterns:

File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in url_patterns

patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in urlconf_module

self._urlconf_module = import_module(self.urlconf_name)

File "/Users/yobichi/wi/lib/python3.5/importlib/init.py" in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "/Users/yobichi/wi/raptle/raptle/urls.py" in

url(r'^rap_song/', include('rap_song.urls', namespace = "rap_song")),

File "/Users/yobichi/wi/lib/python3.5/site-packages/django/conf/urls/init.py" in include

urlconf_module = import_module(urlconf_module)

File "/Users/yobichi/wi/lib/python3.5/importlib/init.py" in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "/Users/yobichi/wi/raptle/rap_song/urls.py" in

from . import views

File "/Users/yobichi/wi/raptle/rap_song/views.py" in

from .topicWords import update_topic

File "/Users/yobichi/wi/raptle/rap_song/topicWords.py" in

import matplotlib.pyplot as plt

File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/init.py" in

rcParams = rc_params()

File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/init.py" in rc_params

return rc_params_from_file(fname, fail_on_error)

File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/init.py" in rc_params_from_file

config_from_file = _rc_params_in_file(fname, fail_on_error)

File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/init.py" in _rc_params_in_file

with _open_file_or_url(fname) as fd:

File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py" in enter

return next(self.gen)

File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/init.py" in _open_file_or_url

encoding = locale.getdefaultlocale()[1]

File "/Users/yobichi/wi/lib/python3.5/locale.py" in getdefaultlocale

return _parse_localename(localename)

File "/Users/yobichi/wi/lib/python3.5/locale.py" in _parse_localename

raise ValueError('unknown locale: %s' % localename)

Exception Type: ValueError at /rap_song/lyric/user/fama/

Exception Value: unknown locale: UTF-8

I have changed the setting of terminal preferences but when I do this:

import locale

locale.getdefaultlocale()

I get : (None, None).

Could you please help me for this issue? Thanks in advance!

Issue 2:
Hi guys!

I am new to python and matplotlib.

I installed everything with macports and when I run the matplotlib test

python2.7 -c 'import matplotlib; print matplotlib.version, matplotlib.file'

I get the following

Traceback (most recent call last):

File "", line 1, in

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/init.py", line 1131, in

rcParams = rc_params()

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/init.py", line 975, in rc_params

return rc_params_from_file(fname, fail_on_error)

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/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 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/init.py", line 1018, in _rc_params_in_file

with _open_file_or_url(fname) as fd:

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in enter

return self.gen.next()

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/init.py", line 1000, in _open_file_or_url

encoding = locale.getdefaultlocale()[1]

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale

return _parse_localename(localename)

File "/opt/local/Library/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

Do you guys have any idea what is happening....I have not done enything weards just follow simple steps to install it.

I want to use QUTIP and the matplotlib is essential for it...please if someone know it would be really nice

thanks!

regards,