I was just trying to redirect the output to the os.dup2 () function, when I pressed OS down2 (3 , 1), which did not like my ipathon (2.7) It crashed and now it will not start again, will cause an error:
traceback (most recent call final): file "/ usr / bin / ipython", line 8, & Lt; In module & gt; Launch_in_instance () file "/usr/lib/pyththon2.7/dist-packages/IPython/frontend/terminal/ipapp.py", line 402, in the launch_new_instance app.initialize () file, "& lt; string & gt;" In order to start the file "/ usr / lib / python2.7 / dist-packages / IPython / config / application.py", the catch_config_error return method (ap, * args, ** kwargs) file "/ usr / lib / Python2.7 / dist-packages / ipython / frontend / terminal / ipapp.py ", line 312, initializing self.init_shell () file" /usr/lib/python2.7/dist-packages/IPython/frontend / Terminal / Ipapp.py ", line 332, init_shell in ipython_dir = self.ipython_dir) the file" /usr/lib/python2.7/dist-packages/IPython/config/configurable.py ", line 318, e.g. Inst = cls (* arg, ** quorum) file "/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/interactiveshell.py", in line 183, __init__ user_module = user_module, custom_exceptions = custom_exceptions The file "/ usr / lib / Python2.7 / dist-packages / IPython / core / interactiveshell.py", line 456, __self.init_readline () file "/ usr / lib / pyththon2 / dist-packages / IPython / Core / interactiveshell.py ", line 1777," /usr/lib/pyththon/core/interactiveshell.py "in the init_readline self.refill_readline_hist () file, line 1789, refill_readline_hist include_latest = true): File "/usr/lib/pyththon2.7/dist-packages/IPython/core/history.py", line 256, Reversal in Get_tail return (list (CR)) database: Database disk image wik If you suspect that this is an IP address bug, then 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 now "% Tb ", or it can debug interactive to use" debug ". Additional detailed tracebacks can be enabled for bug reporting purposes: c.Application.verbose_crash = True
Can anyone help me with that?
Posting again as an answer:
It looks like fd 3 Your ipathan history is the database, and you redirected it to stdout and it has corrupted it.
To resume it, rename ~ / .ipython / profile_default / history.sqlite
(or ~ / .config / ipython / profile_default / history) Or remove) .sqlite
on Linux on specific IPhone versions).
Comments
Post a Comment