Bug 1191579 - python3-dnf cannot be used without python2
python3-dnf cannot be used without python2
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Honza Silhan
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-02-11 09:28 EST by Lukas Slebodnik
Modified: 2015-04-06 14:49 EDT (History)
8 users (show)

See Also:
Fixed In Version: dnf-plugins-extras-0.0.6-2.fc22
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-04-06 14:49:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lukas Slebodnik 2015-02-11 09:28:12 EST
Description of problem:
python3-dnf requires dnf which requires python2. Therefore python3-dnf cannot be used without python2. As a result if this I cannot prepare minimal container image without python2.

[root@host ~]# rpm -q --requires python3-dnf | grep "python\|dnf"
dnf = 0.6.3-2.fc21
python(abi) = 3.4
python3-hawkey >= 0.5.2
python3-libcomps >= 0.1.6
python3-librepo >= 1.7.5
rpm-python3 >= 4.12.0

[root@host ~]# rpm -q --requires dnf | grep "python\|dnf"
config(dnf) = 0.6.3-2.fc21
python(abi) = 2.7
python-hawkey >= 0.5.2
python-libcomps >= 0.1.6
python-librepo >= 1.7.5
rpm-python >= 4.12.0

Version-Release number of selected component (if applicable):

[root@host ~]# rpm -q python3-dnf dnf

How reproducible:
Comment 1 Martin Kosek 2015-02-11 09:49:41 EST
CCing Slavek, he should be aware.
Comment 2 Bohuslav "Slavek" Kabrda 2015-02-11 10:03:15 EST
AFAIK dnf should be switched to python3-dnf in F22 and rawhide, so this shouldn't be a problem when the switch happens... But someone from dnf maintainers should confirm.
Comment 3 Lukas Slebodnik 2015-02-11 10:16:26 EST
The most problematic part is that configuration file is owned by package "dnf"
The packaging need to be changed anyway because python3-dnf does not work without configuration file.

[root@host ~]# rpm -ql dnf | grep "/etc"

[root@host ~]# rpm -ql python3-dnf | grep "/etc"
[root@host ~]# echo $?
Comment 4 Honza Silhan 2015-03-05 12:24:33 EST
The packaging of DNF was changed, the packages should be independent in f21, f22, f23 and epel7 for python API usage. This PR [1] moves conf inside each subpackage so it can be run from cmdline too.

[1] https://github.com/rpm-software-management/dnf/pull/236
Comment 5 Fedora Update System 2015-03-31 14:17:40 EDT
hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22.
Comment 6 Fedora Update System 2015-04-01 21:43:56 EDT
Package hawkey-0.5.4-1.fc22, dnf-0.6.5-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.5.4-1.fc22 dnf-0.6.5-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 7 Fedora Update System 2015-04-03 07:39:22 EDT
dnf-plugins-extras-0.0.6-2.fc22,yum-utils-1.1.31-505.fc22,yum-3.4.3-505.fc22,hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22.
Comment 8 Fedora Update System 2015-04-06 14:49:12 EDT
dnf-plugins-extras-0.0.6-2.fc22, yum-3.4.3-505.fc22, dnf-0.6.5-1.fc22, yum-utils-1.1.31-505.fc22, hawkey-0.5.4-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.