On Sun, Dec 18, 2005 at 10:29:50PM +0100, Viktor Ransmayr wrote:
Hello,
I'm new to Twisted and just started reading "Twisted Network Programming Essentials".
The example "dataforward.py" in chapter 2 creates a traceback and an import error, if executed on my laptop running WinXP/Pro-SP2, using Python-2.4.2 and Twisted-2.1.0
The import error complains about a missing module "fcntl" required by ...\twisted\internet\fdesc.py
Reading the python documentation states that the "fcntl" module is available on Unix only. - Does that mean, that this example is working on Unix only or what am I missing?
That's right, unfortunately. That example uses the twisted.internet.stdio module, which relies on fcntl (and the ability to pass the stdin/stdout file descriptors to select), which isn't available on Windows. -Andrew.