ImportError No module named pbr.version

Bug #1708566 reported by Yi Chen on 2017-08-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Undecided
Unassigned

Bug Description

I'm setting up swift in a vm following the SAIO setup guide, and I'm getting this error when running ./.unittest. It is set up in a vm.

liberasurecode[3444]: liberasurecode_backend_open: dynamic linking error libJerasure.so.2: cannot open shared object file: No such file or directory
liberasurecode[3444]: liberasurecode_backend_open: dynamic linking error libJerasure.so.2: cannot open shared object file: No such file or directory
liberasurecode[3444]: liberasurecode_backend_open: dynamic linking error libisal.so.2: cannot open shared object file: No such file or directory
liberasurecode[3444]: liberasurecode_backend_open: dynamic linking error libshss.so.1: cannot open shared object file: No such file or directory
E
======================================================================
ERROR: Failure: ImportError (No module named pbr.version)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, 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 "/home/yichen/swift/test/unit/__init__.py", line 58, in <module>
    import mock as mocklib
  File "/usr/local/lib/python2.7/dist-packages/mock/__init__.py", line 2, in <module>
    import mock.mock as _mock
  File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 69, in <module>
    from pbr.version import VersionInfo
ImportError: No module named pbr.version

I tried to install pbr using pip and got the following:
Requirement already satisfied (use --upgrade to upgrade): pbr in /home/yichen/python-swiftclient/pbr-3.1.1-py2.7.egg
Cleaning up...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers