How to fix python console error in pycharm?

XML-RPC listen loop exception (java.net.SocketException: Socket closed).

When I start PyCharm from bash, I get this error. Result: I cannot use python-console in pycharm. Does anyone know how to fix this?

OS: ubuntu 16.04

+4
source share
1 answer

Hi, I had the same problem as you. I solved the problem by making the line the 127.0.0.1 localhostfirst line in / etc / hosts. The reason the python console does not start is because the python console is trying to connect to localhost: pycharm-port, but localhost was allowed for the IPv6 version ::1and the connection was rejected.

-1
source

Source: https://habr.com/ru/post/1654838/


All Articles