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

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -