PBR

AttributeError: 'module' object has no attribute 'DistributionNotFound'

Bug #1777625 reported by Benjamin Bendel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PBR
Incomplete
Undecided
Unassigned

Bug Description

Hello,

I am trying to use the Python-Keystone-Library but i am getting following exception.

Traceback (most recent call last):
  File "token.py", line 1, in <module>
    import keystoneclient.v2_0 as ksclient
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/__init__.py", line 36, in <module>
    __version__ = pbr.version.VersionInfo('python-keystoneclient').version_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 467, in version_string
    return self.semantic_version().brief_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 462, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources
    import pkg_resources
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 41, in <module>
    import inspect
  File "/usr/lib/python2.7/inspect.py", line 39, in <module>
    import tokenize
  File "/usr/lib/python2.7/tokenize.py", line 31, in <module>
    from token import *
  File "/root/token.py", line 1, in <module>
    import keystoneclient.v2_0 as ksclient
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/__init__.py", line 1, in <module>
    from keystoneclient.v2_0.client import Client # noqa
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 19, in <module>
    from keystoneclient.auth.identity import v2 as v2_auth
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/__init__.py", line 14, in <module>
    from keystoneclient.auth.base import * # noqa
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/base.py", line 15, in <module>
    from debtcollector import removals
  File "/usr/local/lib/python2.7/dist-packages/debtcollector/__init__.py", line 20, in <module>
    'debtcollector').version_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 467, in version_string
    return self.semantic_version().brief_string()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 462, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 444, in _get_version_from_pkg_resources
    except pkg_resources.DistributionNotFound:
AttributeError: 'module' object has no attribute 'DistributionNotFound'

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Which version of pbr and setuptools do you have, and how did you install them (via pip or via system packages)?

Changed in pbr:
status: New → Incomplete
Revision history for this message
Benjamin Bendel (benvandamme) wrote :

setuptools==39.2.0
pbr==4.0.4

installed via pip

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.