diff -r 129af90b2364 -r 479190f019cc cwctl.py --- a/cwctl.py Thu Nov 27 12:11:29 2014 +0100 +++ b/cwctl.py Thu Nov 27 13:40:37 2014 +0100 @@ -524,6 +524,15 @@ def start_instance(self, appid): """start the instance's server""" + try: + import twisted # noqa + except ImportError: + msg = ( + "Twisted is required by the 'start' command\n" + "Either install it, or use one of the alternative commands:\n" + "- '{ctl} wsgi {appid}'\n" + "- '{ctl} pyramid {appid}' (requires the pyramid cube)\n") + raise ExecutionError(msg.format(ctl='cubicweb-ctl', appid=appid)) config = cwcfg.config_for(appid, debugmode=self['debug']) init_cmdline_log_threshold(config, self['loglevel']) if self['profile']: