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

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -