mqingyn / torngas

BSD 3-Clause "New" or "Revised" License
437 stars 137 forks source link

torngas/webserver.py ModuleNotFoundError: No module named 'exception' #15

Open leeyisoft opened 6 years ago

leeyisoft commented 6 years ago

我的环境是 Mac Python3.6, 报错信息如下,我是参照 https://github.com/mqingyn/torngas/tree/master/demo 来的,不知道为什么报错,求大侠指教

(py3) eam/py_admin [master●] » pip list DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. futures (3.1.1) pip (9.0.1) setuptools (38.5.1) six (1.11.0) SQLAlchemy (1.2.4) tornado (4.5.3) torngas (1.8.2) virtualenv (15.1.0) wheel (0.30.0)

python runserver.py --address=0.0.0.0 --port=8000 --settings=settings.setting Traceback (most recent call last): File "runserver.py", line 5, in from torngas.webserver import Server File "/Users/leeyi/chanrongdai/eam/py_admin/py3/lib/python3.6/site-packages/torngas/webserver.py", line 13, in from exception import ConfigError, ArgumentError, UrlError ModuleNotFoundError: No module named 'exception'

leeyisoft commented 6 years ago

我添加一个点,问题就解决了,之后继续包其他不兼容Python3的错误,估计是不支持Python3 了 from .exception import ConfigError, ArgumentError, UrlError from .application import Application