twisted - Twistd Plugin not found after Debian upgrade -
after upgraded debian jessie stretch, twistd not find plugin anymore. not find what's wrong. guess need specify path wasn't neccessary before or similar.
i error /usr/bin/twistd: unknown command: otfbot
, in list of commands, 2 commands of software not listed anymore. directory structure of plugins twisted
twisted/plugins/genconfig_plugin.py twisted/plugins/otfbot_plugin.py
and both instantiate servicemaker.
twisted 16.4 removed feature of twistd
(and trial
, other twisted command line scripts) caused add current working directory sys.path
. if relying on working directory allow code found when using version of twisted older 16.4 (debian jessie includes 14.0.2) , you've upgraded version 16.4 or newer (debian stretch includes 16.6.0) , must explicitly add desired directories import path yourself, perhaps setting virtualenv or setting pythonpath
directly.
this accidental change , not documented in release notes (despite clear, confusing user-facing consequences).
for more details, can read mailing list thread:
http://twistedmatrix.com/pipermail/twisted-python/2016-september/030780.html
Comments
Post a Comment