[users at bb.net] Twisted issue or?

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


Hey,

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 \
    "buildbot[bundle]==0.9.3"

Now somehow I am failing to start it with

 File "/usr/local/bin/twistd", line 17, in <module>
    from twisted.scripts.twistd import run
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/scripts/twistd.py",
line 13, in <module>
    from twisted.application import app
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/application/app.py",
line 17, in <module>
    from twisted import copyright, plugin, logger
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/plugin.py",
line 35, in <module>
    from twisted.python import log
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/python/log.py",
line 26, in <module>
    from twisted.logger import (
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/logger/__init__.py",
line 89, in <module>
    from ._levels import InvalidLogLevelError, LogLevel
  File
"/buildbot/master/.local/lib/python2.7/site-packages/twisted/logger/_levels.py",
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
/buildbot/master/.local/lib/python2.7/site-packages/twisted/logger/_levels.py
coming from? Is twisted auto downloading/extracting latest Twisted itself
in that folder?

Thanks for hte help!

Francesco
-------------- 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