[PKG-Openstack-devel] Bug#823071: python-pbr: missing dependency on python-pkg-resources

Simon McVittie smcv at debian.org
Sat Apr 30 14:33:33 UTC 2016


Source: python-pbr
Version: 1.8.0-4
Severity: normal

In an autopkgtest virtual machine, installing python-mock and
running "python -c 'import mock'" fails:

adt at debian:~$ python -c 'import mock'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/mock/__init__.py", line 2, in <module>
    import mock.mock as _mock
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 69, in <module>
    from pbr.version import VersionInfo
  File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 25, in <module>
    import pkg_resources
ImportError: No module named pkg_resources

This appears to be a missing dependency by python-pbr, rather than
directly python-mock's fault?

A similar issue seems to be present in python3-pbr and python3-mock.

Regards,
    S

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Openstack-devel mailing list