librelist archives

« back to archive

Hi everyone!

Hi everyone!

From:
杨振彪
Date:
2012-01-03 @ 05:43
Sorry for my poor English.

I  have wrote a "A Minimal Application" of flask:

> from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello World!'

if __name__ == '__main__':
    app.run()

>


and i use "python code.py" to started the server
when i navigate to http://127.0.0.1:5000 i got a error:

Exception happened during processing of request from ('127.0.0.1', 52783)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 283, in
_handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 618, in __init__
    self.finish()
  File "C:\Python26\lib\SocketServer.py", line 661, in finish
    self.wfile.flush()
  File "C:\Python26\lib\socket.py", line 297, in flush
    self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 10053] An established connection was aborted by the software
in yo
ur host machine


any helps?
thank you!