์ฐ๋ถํฌ 14.04 LTS ํ์ด์ฌ 2.7.6
"sudo ipython"๋ง ์ฌ์ฉํ๋ฉด ipython์ ์ด ์ ์์ผ๋ฉฐ "sudo apt-get install ipython"์ผ๋ก ์ค์นํ ์ ์์ต๋๋ค.
์ญ์ถ์ (๊ฐ์ฅ ์ต๊ทผ ํธ์ถ ๋ง์ง๋ง):
ํ์ผ "/usr/bin/ipython", 6ํ,
์์_์์ดํ์ด์ฌ()
ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/init .py", 118ํ, start_ipython
๋ฐํ launch_new_instance(argv=argv, *_kwargs)
launch_instance์ ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/config/application.py", 545ํ
์ฑ ์ด๊ธฐํ(argv)
ํ์ผ "
catch_config_error์ ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/config/application.py", 89ํ
๋ฐํ ๋ฐฉ๋ฒ(์ฑ, *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ํ, ์ด๊ธฐํ
*_kwargs
ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", 456ํ, ์ด๊ธฐํ
self.init_history()
ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", ๋ผ์ธ 1480, init_history
self.history_manager = HistoryManager(shell=self, parent=self)
ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/core/history.py", 481ํ, ์ด๊ธฐํ
self.new_session()
ํ์ผ "
ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/core/history.py", 65ํ, needs_sqlite์์
๋ฐํ f(์์ , *a, *_kw)
new_session์ ํ์ผ "/usr/lib/python2.7/dist-packages/IPython/core/history.py", 499ํ
NULL, "") """, (datetime.datetime.now(),))
OperationalError: ์ฝ๊ธฐ ์ ์ฉ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฐ๊ธฐ ์๋
sudo ipython
๋๋ ipython
๋ก ๋ฐ์ผ์
จ์ต๋๊น? ipython locate
์ ๊ฒฐ๊ณผ๋ ๋ฌด์์
๋๊น?
$(ipython locate)/profile_default
์ ์๋ชป๋ ๊ถํ์ด ์๋ history.sqlite๊ฐ ์์ต๋๊น? (๋ง์ฝ ๊ทธ๋ ๋ค๋ฉด ์ญ์ ํ๊ณ ๋ค์ ์๋ํ๊ฑฐ๋ ๊ถํ/์์ ์๋ฅผ ๋ณ๊ฒฝํ์ญ์์ค)
sudo ipython locate
๊ฐ ์๋ํ์ง ์์ผ๋ฉด ์์ ๋์ผํฉ๋๋ค.
์ฐ๋ฆฌ๋ ๋ฐ๋น์/์ฐ๋ถํฌ ํจํค์ง๋ฅผ ์ ์ง ๊ด๋ฆฌํ์ง ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๊ฒ์ด ์ ์ ํ ์ค์น ๋ฐฉ์ ๋๋ฌธ์ด๋ผ๋ฉด ์ฌ๊ธฐ์ ํ ์ ์๋ ๊ฒ์ด ์์ต๋๋ค.
๊ทธ๊ฒ์ excute์ ์ํด ์๋์ ์์ํฉ๋๋ค:
chown -R user-name:root ~/.ipython
_๊ฐ์ฌ ํด์!_
chown -R user-name:user-name ~/.ipython
์๋ง๋? ๊ทธ๋ฃน์ด ๋ฃจํธ์ฌ์ผ ํ ์ด์ ๊ฐ ์์ต๋๋ค...
์ฆ๊ฑฐ์ด ํดํน.
๋ค ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๊ทธ๊ฒ์ excute์ ์ํด ์๋์ ์์ํฉ๋๋ค:
_๊ฐ์ฌ ํด์!_