Red Hat Bugzilla – Bug 1302919
Fedora-easy-karma imports yum (causing a deprecation warning) if python2-dnf is not installed
Last modified: 2016-03-25 04:47:35 EDT
Description of problem: When running fedora-easy-karma on f23 there is a message;
Line 47 import yum.
This bug was reported on october 2015, but until now January 28 2016 is still there. Who is suppossed to fix that bug?
I'm trying to run the test on fedora 23 but I'm stuck at this point.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This will only happen if you don't have python2-dnf installed. It's not a hard dependency because f-e-k *can* function with yum, if python2-dnf isn't available. I'm not sure whether it's really worth calling this a bug, exactly, it's kind of a subjective decision on the packager's part whether to 'enforce' use of python2-dnf for F23 users.
I think in the spec file, f-e-k should requires python2-dnf.
If the system is installed, for example,
# dnf --releasever=23 --installroot=/newsysroot \
install '@core' fedora-easy-karma
then, in the installed system, f-e-k output the following error message.
Traceback (most recent call last):
File "/usr/bin/fedora-easy-karma", line 47, in <module>
ImportError: No module named yum
Because, the above dnf command installs python3-dnf, not python2-dnf.
Thank you for the report, the current package in testing recommends python2-dnf, see bug 1270600 for this.
*** This bug has been marked as a duplicate of bug 1270600 ***