wok icon indicating copy to clipboard operation
wok copied to clipboard

Wok fails to start with Cherrypy 12.0

Open masoudd opened this issue 7 years ago • 1 comments

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'

masoudd avatar Nov 26 '17 13:11 masoudd

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

chr0mag avatar Jan 18 '18 02:01 chr0mag