When I try to run the following code...
from telnetsrvlib import *
if __name__ == \'__main__\':
\"Testing - Accept a single connection\"
class TNS(SocketSer
inspired by @YKB, I did this for Ubuntu 16.04 and Python3.5.2,
sudo apt-get install libncurses5-dev,
and then go to source code of Python, and make, two new files are created.
_curses.cpython-35m-x86_64-linux-gnu.so
_curses_panel.cpython-35m-x86_64-linux-gnu.so
And then copy them to lib-dynload folder at where you installed your python.