kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
237 stars 77 forks source link

Wok fails to start with Cherrypy 12.0 #234

Open masoudd opened 6 years ago

masoudd commented 6 years ago

Cherrypy 12.0 removed support for "engine.timeout_monitor.on" config option as stated in the release change notes

wokd crashes with this output:

Traceback (most recent call last):
  File "/usr/bin/wokd", line 93, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/bin/wokd", line 90, in main
    wok.server.main(options)
  File "/usr/lib/python2.7/site-packages/wok/server.py", line 190, in main
    srv = Server(options)
  File "/usr/lib/python2.7/site-packages/wok/server.py", line 92, in __init__
    cherrypy.engine.timeout_monitor.unsubscribe()
 AttributeError: 'Bus' object has no attribute 'timeout_monitor'
chr0mag commented 6 years ago

Commenting out the offending line gets one past this. The following sed command will allow you to do this from a build script until a more permanent fix is added:

sed --in-place 's/cherrypy.engine.timeout_monitor.unsubscribe()/#cherrypy.engine.timeout_monitor.unsubscribe()/' src/wok/server.py