Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1302919

Summary: Fedora-easy-karma imports yum (causing a deprecation warning) if python2-dnf is not installed
Product: [Fedora] Fedora Reporter: Francisco Villavicencio <fvillavi>
Component: fedora-easy-karmaAssignee: Till Maas <opensource>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: awilliam, opensource, watanabe.yu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-25 08:47:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Francisco Villavicencio 2016-01-29 00:32:56 UTC
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):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 1 Adam Williamson 2016-01-29 01:21:46 UTC
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.

Comment 2 Yu Watanabe 2016-03-17 08:14:30 UTC
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>
    import yum
ImportError: No module named yum

Because, the above dnf command installs python3-dnf, not python2-dnf.

Comment 3 Till Maas 2016-03-25 08:47:35 UTC
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 ***