2

为什么我无法在此目录中打开 Ipython 笔记本?

~/Documenti/Università

我认为这是由于字符“à”但我该如何解决这个问题?真的应该改变目录吗?这里的输出:

nunzio@nunzio-Lenovo-U310:~/Documenti/Università$ ipython notebook
[NotebookApp] Using existing profile dir: 
--------------------------------------------------
more output
---------------------------------------------------
    value.instance_init(inst)
  File "/usr/lib/python2.7/dist-packages/IPython/utils/traitlets.py", line 243, in instance_init
    self.set_default_value(obj)
  File "/usr/lib/python2.7/dist-packages/IPython/utils/traitlets.py", line 263, in set_default_value
    newdv = self._validate(obj, dv)
  File "/usr/lib/python2.7/dist-packages/IPython/utils/traitlets.py", line 311, in _validate
    return self.validate(obj, value)
  File "/usr/lib/python2.7/dist-packages/IPython/utils/traitlets.py", line 1012, in validate
    return unicode(value)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    c.Application.verbose_crash=True

Ipython的版本是0.12.1

4

2 回答 2

0

我已将 Ipython 的版本更新为 0.13.1,现在一切正常。谢谢大家!

于 2013-03-22T18:14:10.730 回答
0

这是一个环境问题;我可以通过发布env -i ipython(IPython 0.13.1) 来重现崩溃。防止这种情况发生的变量是LANG

env -i LANG="$LANG" ipython

作品。我对此的设置是en_US.UTF-8,所以你可以添加类似

export LANG=en_US.UTF-8

到你的.bashrc.

于 2013-03-22T17:01:55.897 回答