Ipython: OperationalError:読み取り専用データベースを書き込もうとしました

作成日 2015年01月12日  ·  4コメント  ·  ソース: ipython/ipython

Ubuntu 14.04 LTS Python 2.7.6
「sudoipython」を使用するだけでipythonを開くことができ、「sudo apt-getinstallipython」でインストールできます

トレースバック(最後の最後の呼び出し):
ファイル "/ usr / bin / ipython"、6行目、
start_ipython()
start_ipythonのファイル "/usr/lib/python2.7/dist-packages/IPython/ init .py"、行118
launch_new_instance(argv = argv、* _kwargs)を返します
launch_instanceのファイル "/usr/lib/python2.7/dist-packages/IPython/config/application.py"、行545
app.initialize(argv)
ファイル ""、2行目、初期化中
ファイル「/usr/lib/python2.7/dist-packages/IPython/config/application.py」、89行目、catch_config_error
return method(app、* args、* _kwargs)
初期化中のファイル「/usr/lib/python2.7/dist-packages/IPython/terminal/ipapp.py」、323行目
self.init_shell()
ファイル "/usr/lib/python2.7/dist-packages/IPython/terminal/ipapp.py"、339行目、init_shell
ipython_dir = self.ipython_dir、user_ns = self.user_ns)
ファイル "/usr/lib/python2.7/dist-packages/IPython/config/configurable.py"、行349、インスタンス
inst = cls(_args、* _kwargs)
ファイル "/usr/lib/python2.7/dist-packages/IPython/terminal/interactiveshell.py"、行320、 init
* _kwargs
ファイル "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py"、456行目、 init
self.init_history()
init_historyのファイル "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py"、1480行目
self.history_manager = HistoryManager(shell = self、parent = self)
ファイル "/usr/lib/python2.7/dist-packages/IPython/core/history.py"、行481、 init
self.new_session()
ファイル ""、2行目、new_session
ファイル "/usr/lib/python2.7/dist-packages/IPython/core/history.py"、65行目、needs_sqlite
f(self、* a、* _kw)を返します
new_sessionのファイル "/usr/lib/python2.7/dist-packages/IPython/core/history.py"、行499
NULL、 "") "" "、(datetime.datetime.now()、))
OperationalError:読み取り専用データベースを書き込もうとしました

needs-info

最も参考になるコメント

それはexecuteによって働き始めます:

chown -R user-name:root ~/.ipython

_ありがとうございます!_

全てのコメント4件

sudo ipythonまたはipythonでこれを取得しましたか? ipython locateの結果は何ですか?
$(ipython locate)/profile_defaultには間違った権限を持つhistory.sqliteがありますか? (その場合は、削除して再試行するか、権限/所有者を変更してください)

動作しなかった場合は、上記と同じsudo ipython locateを使用します。

私たちはdebian / ubuntuパッケージを維持していないので、これがaptのインストール方法によるものである場合、ここでできることは何もありません。

それはexecuteによって働き始めます:

chown -R user-name:root ~/.ipython

_ありがとうございます!_

chown -R user-name:user-name ~/.ipython多分? グループがルートである必要がある理由はわかりません...

ハッピーハッキング。

はい、ありがとうございます!

このページは役に立ちましたか?
0 / 5 - 0 評価