Thanks for the help.<div>I did do the same (searched it on CherryPy group)...alas after positing it BangPypers.</div><div><br></div><div>by the way, this issue goes away with the latest install of CherryPy 3.1.2</div><div>
No need to down grade Python :)</div><div><br></div><div>Best regards,</div><div>Vishal </div><div><br><div class="gmail_quote">On Mon, Apr 27, 2009 at 2:01 PM, S.Ramaswamy <span dir="ltr"><<a href="mailto:srsy70@gmail.com">srsy70@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> I am trying to use the CherryPy webserver to serve a simple application on<br>
> the localhost.<br>
> When I start the sever from command line using:<br>
>>>> python my_app.py<br>
> I am getting the following error in the browser:<br>
><br>
> Traceback (most recent call last):<br>
> File "C:\Python25\lib\site-packages\cherrypy\wsgiserver\__init__.py", line<br>
> 983, in communicate<br>
> req.parse_request()<br>
> File "C:\Python25\lib\site-packages\cherrypy\wsgiserver\__init__.py", line<br>
> 304, in parse_request<br>
> self._parse_request()<br>
> File "C:\Python25\lib\site-packages\cherrypy\wsgiserver\__init__.py", line<br>
> 317, in _parse_request<br>
> request_line = self.rfile.readline()<br>
> File "C:\Python25\lib\site-packages\cherrypy\wsgiserver\__init__.py", line<br>
> 212, in readline<br>
> data = self.rfile.readline(256)<br>
> File "C:\Python25\lib\site-packages\cherrypy\wsgiserver\__init__.py", line<br>
> 823, in readline<br>
> nl = data.find('\n', 0, size)<br>
> AttributeError: 'cStringIO.StringO' object has no attribute 'find'<br>
><br>
<br>
</div><a href="http://www.cherrypy.org/ticket/843" target="_blank">http://www.cherrypy.org/ticket/843</a><br>
<br>
Change in socket._fileobject breaks CherryPy 3.1 on Python 2.5.2+<br>
<br>
A cursory google search with the error message brings up quite a few<br>
relevant results.<br>
<br>
Ramaswamy<br>
_______________________________________________<br>
BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks and best regards,<br>Vishal Sapre<br><br>---<br><br>"So say...Day by day, in every way, I am getting better, better and better !!!"<br>"A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it"<br>
"Diamond is another piece of coal that did well under pressure”<br>"Happiness keeps u Sweet, Trials keep u Strong, <br>Sorrow keeps u Human, Failure Keeps u Humble, <br>Success keeps u Glowing, But only God Keeps u Going.....Keep Going....."<br>
</div>