I created a Client/Server code in python. Server works well and get listen on 8000 port, but when I connect to it via client and then I try to send a message to server I get the
TcpSocket.send(sendData)
Looks like send accepts only bytes instances. Try:
bytes
TcpSocket.send(bytes(sendData, "ascii")) #... or whatever encoding is appropriate