Open BlueHoopor opened 6 years ago
我也遇到同样的问题,求解决方法 @mqingyn
This is web.py demo
2018-02-24 16:19 GMT+08:00 leeyi notifications@github.com:
我也遇到同样的问题,求解决方法 @mqingyn https://github.com/mqingyn
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mqingyn/torngas/issues/14#issuecomment-368210485, or mute the thread https://github.com/notifications/unsubscribe-auth/AHleHXFFClsvH1yMqa5GbtsTeS2OKHmJks5tX8X7gaJpZM4P5SC_ .
我没有用过 web.py ,不熟悉,能够解释的详细些吗? (我是想要在Python3下面把 torngas 正常运行起来,能够访问MySQL) @smoothjump @mqingyn
如果要在python3下面跑,不兼容的代码需要你自己改掉 或者你可以选择python 2.X,需要用python 2的解释器运行pip安装,3不是向后兼容的 以上的问题不是语法问题,ThreadlocalLikeRequestContext里面不存在‘data’属性,自己看代码吧
tornado 现在都5.0了,据说Python3才是Python的未来,你不打算让torngas支持Python3吗?
I installed torgnas with pip3 (Python 3.6 + Tornado 4.3). The demo can't run because of Python 2.x syntax such as :
except Exception, e:
after using 2to3-3.6, still can't run, here is the tornado log :
_[E 171014 09:15:18 http1connection:54] Uncaught exception