ipython:OperationalError:磁盘I / O错误 [英] ipython: OperationalError: disk I/O error

查看:685
本文介绍了ipython:OperationalError:磁盘I / O错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在fedora 18上成功运行ipython直到现在:我在尝试启动它时遇到以下异常:

I was running ipython successfully on fedora 18 until now: I'm getting the following exception when trying to launch it:

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

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

I tried to upgrade ipython to the latest version using pip, which did not help. Any solution or workaround is very much welcomed.

推荐答案

一般情况下的配置文件中的IPython商店历史记录〜/ .ipython / profile_default / history.sqlite 。读/写似乎有一个磁盘错误。
检查文件/文件夹的权限,必要时删除文件。

IPython store history in a profile generally in ~/.ipython/profile_default/history.sqlite. There seem to be a disk error reading/writting to it. Check the permissions of the file/folders, if necessary delete the file.

这篇关于ipython:OperationalError:磁盘I / O错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆