[Twisted-Python] Problems with code in "Twisted" book ...

Hey there, Just got a copy of "Twisted" and I've been playing around with the book examples. Can't seem to get the "Example 2-6. dataforward.py" to work on Windows. I've reverted back to Python 2.3 (because I ultimately want to use the secure stuff later). It compiles and runs, but I get no echo of the input and the reactor seems to be frozen. When I Ctrl-C the program I get my keyed input spewed into the console, so it seems python is not receiving it. Is there a place I can check for the latest code from the book or is there a more suitable place to ask questions of this type? Thx, Sandy

On Tue, 10 Oct 2006 11:34:24 -0600, "Walsh, Sandy" <swalsh@ncipher.com> wrote:
I can at least confirm that it doesn't work for me on Windows, either. I couldn't say why without doing more investigation, though. The dataforward.py example looks a little more complex than it needs to be, but not obviously broken. This may simply be poor stdio handling on Windows.
Jean-Paul

Walsh, Sandy ha scritto:
I suggest to try with http://twistedmatrix.com/trac/ticket/2157 1. Backup your twisted.internet._win32stdio.py and twisted.internet._pollingfile.py 2. Copy conio.py into twisted.internet and apply the patches _pollingfile.patch and _win32stdio.patch. One problem is that the cursor/caret is not visible (and I don't know why). On my PC, with Windows XP Pro SP2, it works without problems. Regards Manlio Perillo

Super ... thx for the help! -Sandy -----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Manlio Perillo Sent: Monday, October 23, 2006 1:46 PM To: Twisted general discussion Subject: Re: [Twisted-Python] Problems with code in "Twisted" book ... Walsh, Sandy ha scritto: program
I suggest to try with http://twistedmatrix.com/trac/ticket/2157 1. Backup your twisted.internet._win32stdio.py and twisted.internet._pollingfile.py 2. Copy conio.py into twisted.internet and apply the patches _pollingfile.patch and _win32stdio.patch. One problem is that the cursor/caret is not visible (and I don't know why). On my PC, with Windows XP Pro SP2, it works without problems. Regards Manlio Perillo _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

On Tue, 10 Oct 2006 11:34:24 -0600, "Walsh, Sandy" <swalsh@ncipher.com> wrote:
I can at least confirm that it doesn't work for me on Windows, either. I couldn't say why without doing more investigation, though. The dataforward.py example looks a little more complex than it needs to be, but not obviously broken. This may simply be poor stdio handling on Windows.
Jean-Paul

Walsh, Sandy ha scritto:
I suggest to try with http://twistedmatrix.com/trac/ticket/2157 1. Backup your twisted.internet._win32stdio.py and twisted.internet._pollingfile.py 2. Copy conio.py into twisted.internet and apply the patches _pollingfile.patch and _win32stdio.patch. One problem is that the cursor/caret is not visible (and I don't know why). On my PC, with Windows XP Pro SP2, it works without problems. Regards Manlio Perillo

Super ... thx for the help! -Sandy -----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Manlio Perillo Sent: Monday, October 23, 2006 1:46 PM To: Twisted general discussion Subject: Re: [Twisted-Python] Problems with code in "Twisted" book ... Walsh, Sandy ha scritto: program
I suggest to try with http://twistedmatrix.com/trac/ticket/2157 1. Backup your twisted.internet._win32stdio.py and twisted.internet._pollingfile.py 2. Copy conio.py into twisted.internet and apply the patches _pollingfile.patch and _win32stdio.patch. One problem is that the cursor/caret is not visible (and I don't know why). On my PC, with Windows XP Pro SP2, it works without problems. Regards Manlio Perillo _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
Jean-Paul Calderone
-
Manlio Perillo
-
Walsh, Sandy