While the fileno()
method works on normal IO objects (sys.stdout
, sys.stderr
, sys.stdin
and socket.socket
), the IDLE Python IDE changes your IO objects which breaks this.
So… if you get this error, run the command from straight up Python instead.
More Related Contents:
- When source_address of python socket.create_connection is used? [closed]
- Python socket not receiving without sending
- Interprocess communication in Python
- TypeError: a bytes-like object is required, not ‘str’
- Python Socket Receive Large Amount of Data
- socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
- On localhost, how do I pick a free port number?
- Python simple socket client/server using asyncio
- Python Socket Flush
- Opening a SSL socket connection in Python
- Python socket connection timeout
- Python server “Only one usage of each socket address is normally permitted”
- How to connect to a remote Windows machine to execute commands using python?
- Why am I getting the error “connection refused” in Python? (Sockets)
- Read timeout using either urllib2 or any other http library
- How does the python socket.recv() method know that the end of the message has been reached?
- Can Python select what network adapter when opening a socket?
- 104, ‘Connection reset by peer’ socket error, or When does closing a socket result in a RST rather than FIN?
- Send a file through sockets in Python
- Python socket.accept nonblocking?
- socket.error:[errno 99] cannot assign requested address and namespace in python
- Python [Errno 98] Address already in use
- Can I run a Python script as a service?
- How to use socket in Python as a context manager?
- Sending a file over TCP sockets in Python
- How to make a simple multithreaded socket server in Python that remembers clients
- Making moves w/ websockets and python / django ( / twisted? )
- Socket Programming Python: How to make sure entire message is received?
- What is “backlog” in TCP connections?
- How to close a socket left open by a killed program?