[PKG-Openstack-devel] Bug#931214: ImportError: No module named oslo.config

Jö Fahlke jorrit at jorrit.de
Fri Jun 28 12:52:43 BST 2019


Package: python-os-collect-config
Version: 0.1.15-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

I'm trying to use os-collect-config in a Debian stretch instance in an
openstack cluster.  However, running it immediately leads to an import error:
```
root at epic-sky-gate-server-texage5etawq:/home/debian# os-collect-config 
Traceback (most recent call last):
  File "/usr/bin/os-collect-config", line 6, in <module>
    from os_collect_config.collect import __main__
  File "/usr/lib/python2.7/dist-packages/os_collect_config/collect.py", line 25, in <module>
    from openstack.common import log
  File "/usr/lib/python2.7/dist-packages/os_collect_config/openstack/common/log.py", line 43, in <module>
    from oslo.config import cfg
ImportError: No module named oslo.config
root at epic-sky-gate-server-texage5etawq:/home/debian# cat /etc/debian_version
9.9
root at epic-sky-gate-server-texage5etawq:/home/debian# dpkg -l python-oslo.config
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                      Version                   Architecture              Description
+++-=========================================-=========================-=========================-========================================================================================
ii  python-oslo.config                        1:3.17.0-3                all                       Common code for Openstack Projects (configuration API) - Python 2.x
```

Here is a reproducer using Docker and Dockers debian:buster image:
```Dockerfile
FROM debian:buster

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-os-collect-config
RUN dpkg -l
RUN dpkg -S /usr/lib/python2.7/dist-packages/os_collect_config/openstack/common/log.py
RUN grep '' /etc/apt/sources.list /etc/apt/sources.list.d/* || true
RUN os-collect-config --help
```

I'm attaching the output of running docker build on the above.

Regards,
Jorrit Fahlke.

-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-os-collect-config depends on:
ii  dpkg                   1.18.25
ii  python                 2.7.13-2
ii  python-anyjson         0.3.3-1
ii  python-eventlet        0.19.0-6
ii  python-iso8601         0.1.11-1
ii  python-keystoneclient  1:3.2.0-4
ii  python-lxml            3.7.1-1
ii  python-oslo.config     1:3.17.0-3
ii  python-pbr             1.10.0-1
ii  python-requests        2.12.4-1
ii  python-six             1.10.0-3

python-os-collect-config recommends no packages.

python-os-collect-config suggests no packages.

-- no debconf information

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

Interpunktion, Orthographie und Grammatik der Email ist frei erfunden.
Eine Übereinstimmung mit aktuellen oder ehemaligen Regeln wäre rein
zufällig und ist nicht beabsichtigt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/openstack-devel/attachments/20190628/4975840c/attachment.sig>


More information about the Openstack-devel mailing list