Comment 4 for bug 1841277

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: please drop Py 2 OpenStack Build-Depends

I tried a build with the above named Build-Depends dropped but that results in a failure [1]. It looks like at least keystoneclient is also a run-time dependency. Can the python-simplestreams binary package be dropped at this point? That would solve that issue. I was able to successfully build the package after removing the python-simplestreams binary package and Python 2 support. Please see the attached debdiff. Note the patch should get forwarded upstream. If the approach sounds reasonable I can do that.

[1]
======================================================================
ERROR: Failure: ImportError (No module named keystoneclient.v2_0)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/build/simplestreams-0.1.0-25-gba75825b/tests/unittests/test_openstack.py", line 4, in <module>
    import simplestreams.openstack as s_openstack
  File "/build/simplestreams-0.1.0-25-gba75825b/simplestreams/openstack.py", line 21, in <module>
    from keystoneclient.v2_0 import client as ksclient_v2
ImportError: No module named keystoneclient.v2_0