Red Hat Bugzilla – Bug 1259157
oslo_utils has changed into oslo.utils
Last modified: 2016-05-11 17:37:05 EDT
Description of problem:
[djuran@localhost ~]$ heat
Traceback (most recent call last):
File "/usr/bin/heat", line 6, in <module>
from heatclient.shell import main
File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 23, in <module>
from oslo_utils import encodeutils
ImportError: No module named oslo_utils
Version-Release number of selected component (if applicable):
Seems structure of oslo-utils has changed, guess it should be
from oslo.utils import encodeutils
I believe it's the other way around. Oslo_utils used to be "oslo.utils" but has been moved out of the namespace to its own package. Is there a more recent version of python-oslo-utils available?
Ah, of course.
Well, Fedora 23 has python-oslo-utils-1.4 published, so maybe a bump is required in F22. Or is it python-heatclient that is too recent for it's own good?
It may be a too-new-for-its-own-good situation, but downgrading would probably be tough since we've already released it.
It might be possible to patch 0.6 to use an older oslo-utils, but that might be a brittle/insufficient solution.
Jakub, can you weigh in on the options here?
Just faced this issue.
Not clear to me what is the solution: should I move to fedora23?
Ideally this bug should be fixed in F22 but I can confirm the issue is fixed in F23 with python-heatclient-0.6.0-2
:) got it.