Python Error: io.UnsupportedOperation: fileno

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.

Leave a Comment