Prev: Python Script Cannot Write to Directory
Next: Difference between queues and pipes in multiprocessing
From: sarah on 4 Aug 2010 05:12 hi i face with this problem when i want to run this command on cygwin: python httpd.py 8000 example-300-1k-rigid.py Dfghfji12d52s35s2sswee9E with this error :0 Exception happened during processing of request from ('127.0.0.1', 35868) Traceback (most recent call last): File "/usr/local/lib/python2.5/SocketServer.py", line 222, in handle_reque self.process_request(request, client_address) File "/usr/local/lib/python2.5/SocketServer.py", line 241, in process_requ self.finish_request(request, client_address) File "/usr/local/lib/python2.5/SocketServer.py", line 254, in finish_reque self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python2.5/SocketServer.py", line 522, in __init__ self.handle() File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one uest method() File "/usr/local/lib/python2.5/SimpleHTTPServer.py", line 46, in do_GET self.copyfile(f, self.wfile) File "/usr/local/lib/python2.5/SimpleHTTPServer.py", line 175, in copyfile shutil.copyfileobj(source, outputfile) File "/usr/local/lib/python2.5/shutil.py", line 29, in copyfileobj fdst.write(buf) File "/usr/local/lib/python2.5/socket.py", line 274, in write self.flush() File "/usr/local/lib/python2.5/socket.py", line 261, in flush self._sock.sendall(buffer) error: (104, 'Connection reset by peer') please help me i am hurry!1
From: Aahz on 4 Aug 2010 12:01
In article <ff8991c7-fc97-4688-9f0a-b2dd7c778eb5(a)o19g2000yqb.googlegroups.com>, sarah <maral.nikfar(a)gmail.com> wrote: > > i face with this problem when i want to run this command on cygwin: > python httpd.py 8000 example-300-1k-rigid.py Make sure the webclient service is running. (May not have anything to do with your problem, but it's something I had a problem with recently.) -- Aahz (aahz(a)pythoncraft.com) <*> http://www.pythoncraft.com/ "....Normal is what cuts off your sixth finger and your tail..." --Siobhan |