Error running console (from remote host)

Answered

I have set up PyCharm 2016.2.3 to work with remote Ubuntu 16.04 server. Everything works great - code running, debugging, I have even managed to get X11 output to local PC (Windows 10).

However, I am unable to run remote iPython console (if iPython is disabled in settings, regular console works).

Error:Console process terminated with error:
...
File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/interface.py", line 81, in __init__
self.input = input or StdinInput(sys.stdin)
File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/input.py", line 67, in __init__
assert self.stdin.isatty()
AssertionError


I am running python 3.5 with ipython (5.1.0)

Thanks for any advice!
3 comments

Hi!

Welcome to the PyCharm Community Board!

The issue you ran in to was a bug in your PyCharm version, see: https://youtrack.jetbrains.com/issue/PY-20732

Please update your PyCharm if possible. If not, there's a patch in the YouTrack comments which you can apply manually.

I hope this resolves your issue!

Ernst

1

Thanks! PyCharm does not offer new updates yet (2016.2.3 as of today) but patch mentioned in the bug report did the job! 

0

Hi Andis,

I'm glad to hear your issue has been resolved.

There are some preview versions available for 2016.3, you can read about their new features on our blog and download them from the PyCharm EAP page. Please keep in mind that these may have bugs.

Have a great day!

Ernst

0

Please sign in to leave a comment.