Bug 1198442 - dnf-plugins-core package does not work with dnf package in rawhide
Summary: dnf-plugins-core package does not work with dnf package in rawhide
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Honza Silhan
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2015-03-04 07:18 UTC by Jens Petersen
Modified: 2015-11-06 19:35 UTC (History)
8 users (show)

Fixed In Version: dnf-plugins-core-0.1.6-3.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-04-21 19:26:07 UTC
Type: Bug

Attachments (Terms of Use)
spec fix (1.63 KB, patch)
2015-03-04 08:13 UTC, Marcin Juszkiewicz
no flags Details | Diff

Description Jens Petersen 2015-03-04 07:18:32 UTC
Description of problem:
Not sure what is causing this - it works fine for me in F22.

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

Steps to Reproduce:
1. Install F23 rawhide (minimal+base install)
2. try to run "dnf repoquery"

Actual results:
"No such command: repoquery. Please use dnf --help"

Expected results:
repoquery to work

Additional info:
(I noticed that the build dnf-plugins-core-0.1.5-2.fc23 failed.)

Comment 1 Jens Petersen 2015-03-04 07:51:11 UTC
hrw informed me on #fedora-devel that this might be know and due
to f23 dnf having moved to python3 but not plugins-core yet.

Comment 2 Marcin Juszkiewicz 2015-03-04 07:57:11 UTC
To be more precise:

dnf/f23 is using python3 now by default.
dnf-plugins-core/f23 fails to build due to lack of python3 version of python-kickstart:

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.plbYnV
+ umask 022
+ cd /builddir/build/BUILD
+ cd dnf-plugins-core
+ PYTHONPATH=./plugins
+ /usr/bin/nosetests-2.7 -s tests/
ERROR: Failure: ImportError (No module named pykickstart.parser)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/builddir/build/BUILD/dnf-plugins-core/tests/test_kickstart.py", line 29, in <module>
    import kickstart
  File "/builddir/build/BUILD/dnf-plugins-core/plugins/kickstart.py", line 25, in <module>
    import pykickstart.parser
ImportError: No module named pykickstart.parser
Ran 26 tests in 0.020s
FAILED (errors=1)
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.plbYnV (%check)
    Bad exit status from /var/tmp/rpm-tmp.plbYnV (%check)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps  /builddir/build/SPECS/dnf-plugins-core.spec 

http://koji.fedoraproject.org/koji/taskinfo?taskID=9135435 is scratch build.

Comment 3 Marcin Juszkiewicz 2015-03-04 08:13:44 UTC
Created attachment 997764 [details]
spec fix

To be exact the issue is lack of Python2 kickstart. Attached spec change adds missing build dependency.

Comment 4 Marcin Juszkiewicz 2015-03-04 08:16:00 UTC
https://hrw.fedorapeople.org/dnf-plugins-core-0.1.5-2.fc23.hrw1.src.rpm/ contains packages and logs from build.

Comment 5 Parag Nemade 2015-03-04 08:28:55 UTC
Note, the discussion to fix F23 spec is still going on in upstream https://github.com/rpm-software-management/dnf-plugins-core/pull/66

Comment 6 Marcin Juszkiewicz 2015-03-04 08:33:45 UTC
Parag: thanks, added comment there

Comment 7 Radek Holy 2015-03-04 10:07:18 UTC
This is an unfortunate situation. As a workaround, please install python3-dnf-plugins-core. We are working on the fix.

Comment 8 Honza Silhan 2015-03-06 11:53:06 UTC
fixed in the upstream.

Comment 9 Fedora Update System 2015-04-09 14:41:03 UTC
dnf-plugins-core-0.1.6-3.fc22 has been submitted as an update for Fedora 22.

Comment 10 Fedora Update System 2015-04-10 18:21:31 UTC
Package dnf-plugins-core-0.1.6-3.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 dnf-plugins-core-0.1.6-3.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 11 Matt Mullins 2015-04-17 23:17:11 UTC
I'm still seeing a failure to install any of the previously-mentioned packages:

[mmullins@rawhide ~]$ sudo dnf install dnf-plugins-core
Fedora 22 - x86_64 - Test Updates   28 MB/s |  13 MB     00:00    
Fedora 22 - x86_64 - Updates       4.4 kB/s | 335  B     00:00    
Using metadata from Fri Apr 17 16:15:51 2015 (0:00:06 hours old)
Error: nothing provides pykickstart needed by python-dnf-plugins-core-0.1.6-3.fc22.noarch
[mmullins@rawhide ~]$ sudo dnf install python3-dnf-plugins-core
Using metadata from Fri Apr 17 16:15:51 2015 (0:00:24 hours old)
Error: nothing provides python3-chardet needed by python3-requests-2.5.3-2.fc22.noarch

Comment 12 Matt Mullins 2015-04-18 00:20:21 UTC
Please disregard my previous comment.  That particular machine seems to have had an inconsistent set of repositories configured; a clean F22 install can dependency-solve for dnf-plugins-core just fine.

Comment 13 Fedora Update System 2015-04-21 19:26:07 UTC
dnf-plugins-core-0.1.6-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Nestor Waldyd 2015-11-06 19:33:36 UTC

I am having a problem upgrading from F21 using 'dnf system-upgrade':

[waldyd@localhost-live ~]$ sudo dnf system-upgrade download --releasever 22
Using metadata from Thu Nov  5 11:13:34 2015 (1 day, 3:11:07 hours old)
Error: nothing provides kernel-uname-r = 4.2.3-200.fc22.i686+PAE needed by kmod-VirtualBox-4.2.3-200.fc22.i686+PAE-4.3.32-1.fc22.i686.
nothing provides kernel-uname-r = 4.2.3-200.fc22.i686 needed by kmod-VirtualBox-4.2.3-200.fc22.i686-4.3.32-1.fc22.i686

Any ideas about how to resolve this?

Comment 15 Nestor Waldyd 2015-11-06 19:35:44 UTC
[waldyd@localhost-live ~]$ dnf --version
  Installed: dnf-0:0.6.4-7.fc21.noarch at 2015-10-20 21:51
  Built    : Fedora Project at 2015-09-23 14:30

  Installed: rpm-0: at 2015-07-29 21:16
  Built    : Fedora Project at 2015-06-15 07:11

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