socket data sending problem

Irmen de Jong irmen.NOSPAM at
Thu Jul 4 00:57:34 CEST 2013

On 4-7-2013 0:38, ollietempleman at wrote:

> it all works fine, except for when i try to use:
>   s.send("hello")
> to send data between the client and server, i just get this error message:
>   >>> 
>   Traceback (most recent call last):
>     File "C:/Users/Ollie/Documents/code/chatroom/", line 9, in <module>
>       s.send("hello")
>   TypeError: 'str' does not support the buffer interface
>   >>> 

Are you using Python 3.x? Try sending bytes instead of strings:


Or switch to using Python 2.7


More information about the Python-list mailing list