V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
zuroyu
V2EX  ›  Tornado

Tornado应用无法启动

  •  
  •   zuroyu · 2011-11-13 21:31:12 +08:00 · 6613 次点击
    这是一个创建于 4541 天前的主题,其中的信息可能已经有所发展或是发生改变。
    继杯具的mysql后Tornado也出问题了。
    应用都无法启动,自带最基本的helloword.py
    $ python helloword.py
    无反应…… 这是什么情况。访问应用也是空白。只能Ctrl+c退出

    ^CTraceback (most recent call last):
    File "helloworld.py", line 43, in <module>
    main()
    File "helloworld.py", line 39, in main
    tornado.ioloop.IOLoop.instance().start()
    File "/Library/Python/2.7/site-packages/tornado-2.1-py2.7.egg/tornado/ioloop.py", line 283, in start
    event_pairs = self._impl.poll(poll_timeout)
    File "/Library/Python/2.7/site-packages/tornado-2.1-py2.7.egg/tornado/ioloop.py", line 552, in poll
    kevents = self._kqueue.control(None, 1000, timeout)
    KeyboardInterrupt
    6 条回复    1970-01-01 08:00:00 +08:00
    mywaiting
        1
    mywaiting  
       2011-11-13 22:45:36 +08:00
    难道楼猪工作在OpenBSD下面?!
    lepture
        2
    lepture  
       2011-11-13 22:49:43 +08:00
    @mywaiting 应该是 mac 吧。
    CMGS
        3
    CMGS  
       2011-11-13 22:51:24 +08:00
    @lepture
    = =你也在这里。。
    zuroyu
        4
    zuroyu  
    OP
       2011-11-13 23:11:42 +08:00
    @lepture @mywaiting 嗯,mac 这两天不走运,光棍节还整事。愁死了。谁能给我解决……
    lepture
        5
    lepture  
       2011-11-13 23:37:10 +08:00
    @zuroyu 这个信息,看不出问题所在。怎么会 helloworld 都跑不起来呢?
    zuroyu
        6
    zuroyu  
    OP
       2011-11-13 23:43:41 +08:00
    @lepture 查了半天 应该是 tornado.ioloop.IOLoop.instance().start() 这句跑不起来。进入到python环境里面 执行这句也没反应, 猜想会不会】本机上的其他环境与这个有冲突
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1843 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:24 · PVG 00:24 · LAX 09:24 · JFK 12:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.