[users at bb.net] Twisted issue or?

Francesco Di Mizio francescodimizio at gmail.com
Wed Mar 22 10:49:59 UTC 2017


found myself in a strange situation. I do run custom schedulers that
require me to hardcode the twisted version that gets installed in my bbot
server container.

RUN pip install pyvmomi \
    bla bla .... \
    twisted==15.5.0 \

Now somehow I am failing to start it with

 File "/usr/local/bin/twistd", line 17, in <module>
    from twisted.scripts.twistd import run
line 13, in <module>
    from twisted.application import app
line 17, in <module>
    from twisted import copyright, plugin, logger
line 35, in <module>
    from twisted.python import log
line 26, in <module>
    from twisted.logger import (
line 89, in <module>
    from ._levels import InvalidLogLevelError, LogLevel
line 9, in <module>
    from constantly import NamedConstant, Names

Now constantly doesnt exist in the container and never did because in fact
I never needed it.

It looks like that twisted code being run is not 15.5 I've installed but a
newer version. In particular the following line:

from constantly import NamedConstant, Names

was different in 15.5. As a matter of fact

cat /usr/local/lib/python2.7/dist-packages/twisted/logger/_levels.py | more
from twisted.python.constants import NamedConstant, Names

So where the hell is
coming from? Is twisted auto downloading/extracting latest Twisted itself
in that folder?

Thanks for hte help!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170322/b3561c24/attachment.html>

More information about the users mailing list