ipython:操作错误:磁盘I/O错误

ipython:操作错误:磁盘I/O错误,ipython,Ipython,到目前为止,我一直在fedora 18上成功运行ipython:我在尝试启动它时遇到以下异常: Traceback (most recent call last): File "/usr/bin/ipython", line 9, in <module> load_entry_point('ipython==1.1.0', 'console_scripts', 'ipython')() File "/usr/lib/python2.7/site-packages/IP

到目前为止,我一直在fedora 18上成功运行ipython:我在尝试启动它时遇到以下异常:

Traceback (most recent call last):
  File "/usr/bin/ipython", line 9, in <module>
    load_entry_point('ipython==1.1.0', 'console_scripts', 'ipython')()
  File "/usr/lib/python2.7/site-packages/IPython/__init__.py", line 118, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/config/application.py", line 544, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/usr/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 323, in initialize
    self.init_shell()
  File "/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 339, in init_shell
    ipython_dir=self.ipython_dir, user_ns=self.user_ns)
  File "/usr/lib/python2.7/site-packages/IPython/config/configurable.py", line 349, in instance
    inst = cls(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 320, in __init__
    **kwargs
  File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 456, in __init__
    self.init_history()
  File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 1487, in init_history
    self.history_manager = HistoryManager(shell=self, parent=self)
  File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 481, in __init__
    self.new_session()
  File "<string>", line 2, in new_session
  File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 65, in needs_sqlite
    return f(self, *a, **kw)
  File "/usr/lib/python2.7/site-packages/IPython/core/history.py", line 500, in new_session
    self.session_number = cur.lastrowid
OperationalError: disk I/O error

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
回溯(最近一次呼叫最后一次):
文件“/usr/bin/ipython”,第9行,在
加载入口点('ipython==1.1.0','console脚本','ipython')()
文件“/usr/lib/python2.7/site packages/IPython/_init__.py”,第118行,在start_IPython中
返回启动新实例(argv=argv,**kwargs)
文件“/usr/lib/python2.7/site packages/IPython/config/application.py”,第544行,位于launch_实例中
应用程序初始化(argv)
文件“”,第2行,在初始化中
catch_config_error中的文件“/usr/lib/python2.7/site packages/IPython/config/application.py”,第89行
返回方法(应用程序、*args、**kwargs)
文件“/usr/lib/python2.7/site packages/IPython/terminal/ipapp.py”,第323行,在初始化中
self.init_shell()
init_shell中的文件“/usr/lib/python2.7/site packages/IPython/terminal/ipapp.py”,第339行
ipython\u dir=self.ipython\u dir,user\u ns=self.user\n)
文件“/usr/lib/python2.7/site packages/IPython/config/configurable.py”,第349行,在实例中
inst=cls(*args,**kwargs)
文件“/usr/lib/python2.7/site packages/IPython/terminal/interactiveshell.py”,第320行,在__
**夸尔斯
文件“/usr/lib/python2.7/site packages/IPython/core/interactiveshell.py”,第456行,在__
self.init_history()
文件“/usr/lib/python2.7/site packages/IPython/core/interactiveshell.py”,第1487行,在init_历史记录中
self.history\u manager=HistoryManager(shell=self,parent=self)
文件“/usr/lib/python2.7/site packages/IPython/core/history.py”,第481行,在__
self.new_session()
文件“”,第2行,在新会话中
文件“/usr/lib/python2.7/site packages/IPython/core/history.py”,第65行,在需要的sqlite中
回路f(自身,*a,**kw)
文件“/usr/lib/python2.7/site packages/IPython/core/history.py”,第500行,在新会话中
self.session_number=cur.lastrowid
操作错误:磁盘I/O错误
如果您怀疑这是IPython错误,请在以下地址报告:
https://github.com/ipython/ipython/issues
或者向ipython的邮件列表发送电子邮件-dev@scipy.org
您可以立即使用“%tb”打印更详细的回溯,或使用“%debug”
以交互方式调试它。
可通过以下方式启用用于错误报告目的的额外详细回溯:
c、 Application.verbose\u crash=True

我尝试使用pip将ipython升级到最新版本,但没有任何帮助。非常欢迎任何解决方案或解决方法。

IPython通常在
~/.IPython/profile\u default/history.sqlite中将历史存储在配置文件中。读取/写入磁盘时似乎出现了磁盘错误。

检查文件/文件夹的权限,如有必要,请删除该文件

我通过设置
c.NotebookNotary.db_file=u':memory:'
在jupyter配置文件
~/.jupyter/jupyter_notebook\u notebook\u config.py

解决了这个问题,我认为这是一个错误的建议,因为如果重新启动,您将丢失数据库数据,但没有解释导致错误的原因,或者在需要永久存储时如何修复此错误。