2014-01-11 6 views
2

아나콘다에서 IPython 노트북을 시작하는 동안 아래 오류가 발생합니다. 아나콘다 버전은 1.8.0입니다. 도움이 필요합니다아나콘다에서 IPython 노트북을 실행하는 동안 오류가 발생했습니다.

Shabeers-MacBook-Pro:~ shabeermothi$ /Users/shabeermothi/anaconda/bin/ipython_mac.command ; exit; 
Traceback (most recent call last): 
    File "/Users/shabeermothi/anaconda/bin/ipython", line 6, in <module> 
    sys.exit(start_ipython()) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/__init__.py", line 118, in start_ipython 
    return launch_new_instance(argv=argv, **kwargs) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 544, in launch_instance 
    app.initialize(argv) 
    File "<string>", line 2, in initialize 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error 
    return method(app, *args, **kwargs) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 312, in initialize 
    super(TerminalIPythonApp, self).initialize(argv) 
    File "<string>", line 2, in initialize 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error 
    return method(app, *args, **kwargs) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/core/application.py", line 362, in initialize 
    self.parse_command_line(argv) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 307, in parse_command_line 
    return super(TerminalIPythonApp, self).parse_command_line(argv) 
    File "<string>", line 2, in parse_command_line 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error 
    return method(app, *args, **kwargs) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 474, in parse_command_line 
    return self.initialize_subcommand(subc, subargv) 
    File "<string>", line 2, in initialize_subcommand 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error 
    return method(app, *args, **kwargs) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/config/application.py", line 405, in initialize_subcommand 
    subapp = import_item(subapp) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/utils/importstring.py", line 42, in import_item 
    module = __import__(package, fromlist=[obj]) 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 73, in <module> 
    from IPython.consoleapp import IPythonConsoleApp 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/consoleapp.py", line 43, in <module> 
    from IPython.kernel.zmq.kernelapp import (
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelapp.py", line 54, in <module> 
    from ipkernel import Kernel 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ipkernel.py", line 49, in <module> 
    from zmqshell import ZMQInteractiveShell 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/zmqshell.py", line 36, in <module> 
    from IPython.core.payloadpage import install_payload_page 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/IPython/core/payloadpage.py", line 24, in <module> 
    from docutils.core import publish_string 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/docutils/core.py", line 20, in <module> 
    from docutils import frontend, io, utils, readers, writers 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/docutils/frontend.py", line 41, in <module> 
    import docutils.utils 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module> 
    import docutils.io 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/docutils/io.py", line 18, in <module> 
    from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput 
    File "/Users/shabeermothi/anaconda/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module> 
    locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1] 
    File "/Users/shabeermothi/anaconda/python.app/Contents/lib/python2.7/locale.py", line 511, in getdefaultlocale 
    return _parse_localename(localename) 
    File "/Users/shabeermothi/anaconda/python.app/Contents/lib/python2.7/locale.py", line 443, in _parse_localename 
    raise ValueError, 'unknown locale: %s' % localename 
ValueError: unknown locale: UTF-8 
logout 
+0

[IPython Notebook locale 오류] 가능한 복제본 (0120-337-005)/ – tacaswell

답변

1

이것은 Mac OS X Terminal의 문제입니다. bash 프로필을 변경하여 LANG을 로케일의 올바른 문자열로 설정해야합니다. 다른 해결 방법은 터미널 환경 설정에서 "시작할 때 LANG 환경 변수 설정"설정을 선택 취소하는 것입니다.

자세한 내용은 https://code.djangoproject.com/ticket/5846을 참조하십시오.

+0

해결책 주셔서 감사합니다. –

관련 문제