Tornado has removed named_handlers since 4.5. Maybe need an hasattr test before call.
Here is the Traceback under Tornado 4.5.1:
<torngas.application.Application object at 0x102937290>
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2358, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1778, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/xxx/Tornado/runserver.py", line 30, in
server.load_application()
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 65, in load_application
self._install_application(application)
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 99, in _install_application
**tornado_conf)
File "/usr/local/lib/python2.7/site-packages/torngas/application.py", line 28, in init
self.middleware_fac.run_init(self)
File "/usr/local/lib/python2.7/site-packages/torngas/middleware/manager.py", line 157, in run_init
func(application)
File "/usr/local/lib/python2.7/site-packages/torngas/httpmodule/httpmodule.py", line 88, in process_init
self.named_handlers = application.named_handlers
AttributeError: 'Application' object has no attribute 'named_handlers'
Tornado has removed named_handlers since 4.5. Maybe need an hasattr test before call.
Here is the Traceback under Tornado 4.5.1: <torngas.application.Application object at 0x102937290> Traceback (most recent call last): File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2358, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1778, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/xxx/Tornado/runserver.py", line 30, in
server.load_application()
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 65, in load_application
self._install_application(application)
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 99, in _install_application
**tornado_conf)
File "/usr/local/lib/python2.7/site-packages/torngas/application.py", line 28, in init
self.middleware_fac.run_init(self)
File "/usr/local/lib/python2.7/site-packages/torngas/middleware/manager.py", line 157, in run_init
func(application)
File "/usr/local/lib/python2.7/site-packages/torngas/httpmodule/httpmodule.py", line 88, in process_init
self.named_handlers = application.named_handlers
AttributeError: 'Application' object has no attribute 'named_handlers'