[Bug 1548972] Re: strcred.py is missing from packaging on Twisted 16/Xenial

Launchpad Bug Tracker 1548972 at bugs.launchpad.net
Sat May 21 08:17:25 UTC 2016

** Branch linked: lp:~twisted-packagers/twisted/twisted-sid

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to twisted in Ubuntu.

  strcred.py is missing from packaging on Twisted 16/Xenial

Status in Twisted:
Status in twisted package in Ubuntu:
  Fix Released

Bug description:
  While developing MAAS, I noticed the following traceback:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 579, in parseOptions
      usage.Options.parseOptions(self, options)
    File "/usr/lib/python3/dist-packages/twisted/python/usage.py", line 262, in parseOptions
      for (cmd, short, parser, doc) in self.subCommands:
    File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 596, in subCommands
      for plug in sorted(plugins, key=attrgetter('tapname')):
    File "/usr/lib/python3/dist-packages/twisted/plugin.py", line 213, in getPlugins
      allDropins = getCache(package)
  --- <exception caught here> ---
    File "/usr/lib/python3/dist-packages/twisted/plugin.py", line 171, in getCache
      provider = pluginModule.load()
    File "/usr/lib/python3/dist-packages/twisted/python/modules.py", line 389, in load
      return self.pathEntry.pythonPath.moduleLoader(self.name)
    File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 303, in namedAny
      topLevelPackage = _importAndCheckStack(trialname)
    File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 250, in _importAndCheckStack
      reraise(excValue, excTraceback)
    File "/usr/lib/python3/dist-packages/twisted/python/compat.py", line 412, in reraise
      raise exception.with_traceback(traceback)
    File "/usr/lib/python3/dist-packages/twisted/plugins/cred_sshkeys.py", line 15, in <module>
      from twisted.cred.strcred import ICheckerFactory
  builtins.ImportError: No module named 'twisted.cred.strcred'

  It looks like this file exists in the upstream distribution, but not
  in the .deb:

  $ dpkg -L python3-twisted | grep strcred

  $ apt-get source python3-twisted
  $ cd twisted-16.0.0~pre1
  $ find . | grep strcred

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: python3-twisted 16.0.0~pre1-1
  ProcVersionSignature: Ubuntu 4.4.0-4.19-generic 4.4.1
  Uname: Linux 4.4.0-4-generic x86_64
  ApportVersion: 2.20-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Feb 23 11:51:23 2016
  PackageArchitecture: all
  SourcePackage: twisted
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list