<div id="RTEContent"><br> Fine Book. I'm working through the examples.<br> Hit a problem with the wordcountproxy.py example,<br> under the explanation of HTTP Proxy Servers, on page 62..<br> As this __might__ be an issue with Twisted itself,<br> I'm cross-posting here as well as back to O'Reilly errata.<br> <br> The issue is that the:<br> 'reactor.listenTCP(WEB_PORT, WebReportFactory(counter))'<br> call precipitates an error message in _getfullpathname in<br> Lib/ntpath.py, called from web/http.py, and the error is:<br> 'TypeError: coercing to Unicode: need string or buffer, WordCounter found'<br> <br> The full traceback is given below. N.B. I'm using Python 2.4.1<br> on Win XP.<br> <br> I wonder if anyone else has come across this issue?<br> Any insights gratefully received,<br> <br> Regards,<br> <br> Stephen Nightingale.<br> <br> 2005/11/21 23:20 GMT Standard Time [-] Log opened.<br> 2005/11/21 23:20 GMT Standard Time [-]
__main__.WordCountProxyFactory starting on 8001<br> 2005/11/21 23:20 GMT Standard Time [-] Starting factory <__main__.WordCountProxyFactory instance at 0x00F03878><br> 2005/11/21 23:20 GMT Standard Time [-] Traceback (most recent call last):<br> 2005/11/21 23:20 GMT Standard Time [-] File "wordcountproxy.py", line 137, in ?<br> 2005/11/21 23:20 GMT Standard Time [-] reactor.listenTCP(WEB_PORT, WebReportFactory(counter))<br> 2005/11/21 23:20 GMT Standard Time [-] File "D:\Python\Lib\site-packages\twisted\web\http.py", line 1086, in __init__<br> 2005/11/21 23:20 GMT Standard Time [-] logPath = os.path.abspath(logPath)<br> 2005/11/21 23:20 GMT Standard Time [-] File "d:\Python\lib\ntpath.py", line 500, in abspath<br> 2005/11/21 23:20 GMT Standard Time [-] path = _getfullpathname(path)<br> 2005/11/21 23:20 GMT Standard Time [-] TypeError: coercing to Unicode: need
string or buffer, WordCounter found<br> <br> </div><p>
                <hr size=1><font face="Arial" size="2">To help you stay safe and secure online, we've developed the all new <a href="http://us.rd.yahoo.com/mail/uk/taglines/yahoo_co_uk/security_centre/*http://uk.security.yahoo.com/"><b>Yahoo! Security Centre</b></a>.</font>