错误复现
Traceback (most recent call last):
File "manage.py", line 18, in <module>
from urls import urls_pattern as urls
File "/opt/HarmfulMIS-v1-dev/urls.py", line 27, in <module>
from Route import (dash, users, tasks, strategy, audit, chart)
File "/opt/HarmfulMIS-v1-dev/Route/dash.py", line 13, in <module>
from Ui.dashboard import (MainHandler, IndexHandler, LogoutHandler, SignInHandler, DashboardHandler,
File "/opt/HarmfulMIS-v1-dev/Ui/dashboard/__init__.py", line 12, in <module>
from Ui.dashboard.dash import (MainHandler, IndexHandler, DashboardHandler,
File "/opt/HarmfulMIS-v1-dev/Ui/dashboard/dash.py", line 22, in <module>
class MainHandler(BaseHandlers):
File "/opt/HarmfulMIS-v1-dev/Ui/dashboard/dash.py", line 27, in MainHandler
@tornado.web.asynchronous
AttributeError: module 'tornado.web' has no attribute 'asynchronous'
修复方式
(一)
pip install --upgrade nbconvert
(二)
因Tornado6.0版已弃用该方法
注释掉所有应用@asynchronous的方法