python - an integer is required (got type tuple) Error -
python - an integer is required (got type tuple) Error -
i recieving below error in python 3 idea?
clientdtsocket.send(bytes(filename,"utf-8"),("localhost",8101)) typeerror: integer required (got type tuple)
try calling clientdtsocket.sendto instead of clientdtsocket.send:
clientdtsocket.sendto(bytes(filename,"utf-8"),("localhost",8101)) more info these methods: https://docs.python.org/3/library/socket.html
python
Comments
Post a Comment