'execute selection in console' error after pycharm update fails

Answered

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1421, in do_it
result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\pydevconsole.py", line 480, in console_exec
need_more = exec_code(CodeFragment(expression), updated_globals, frame.f_locals, dbg)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\pydevconsole.py", line 397, in exec_code
interpreterInterface.interpreter.update(globals, locals)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 335, in update
locals[ind] = ns[ind]
KeyError: '_sh'

 

have the problem shown in the log above. This happens after I attempted to update the pycharm, but failed in the middle. 

If I don't enter the debug mode, 'execute selection in console' does not show any issue; but if I enter debug mode, the problem comes up. please help. Thank you in advance.

0
2 comments

Hi Sunnytomy! The problem is caused by recent IPython update (6.1.0). Please downgrade to 6.0.0. Corresponding ticket: PY-24537.

0
Avatar
Permanently deleted user

Pavel, thanks a lot for your quick response. It does work! Cheers.

0

Please sign in to leave a comment.