Bug 1398874

Summary: "dnf repoquery --unsatisfied" fails under rawhide
Product: [Fedora] Fedora Reporter: Bill Gianopoulos <wgianopoulos>
Component: dnfAssignee: rpm-software-management
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lslebodn, mluscon, mmraka, packaging-team-maint, pnemade, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-2.0.0-1.fc26.noarch Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-02 08:45:41 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 Bill Gianopoulos 2016-11-26 21:49:52 UTC
sudo dnf repoquery --unsatisfied
Last metadata expiration check: 0:18:14 ago on Sat Nov 26 16:25:55 2016 EST.
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 170, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 111, in _main
    cli.run()
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 947, in run
    return self.command.run()
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/repoquery.py", line 277, in run
    rpmdb = dnf.sack.rpmdb_sack(self.base)
AttributeError: module 'dnf.sack' has no attribute 'rpmdb_sack'

Comment 1 Michael Mráka 2016-11-28 09:48:14 UTC
Fixed in
https://github.com/rpm-software-management/dnf/pull/648

Comment 2 Bill Gianopoulos 2016-11-28 11:23:46 UTC
Thanks.  I added the underscore locally and that resolved my issue.

Comment 3 Igor Gnatenko 2016-11-28 15:29:28 UTC
*** Bug 1399233 has been marked as a duplicate of this bug. ***

Comment 4 Lukas Slebodnik 2016-12-22 23:30:11 UTC
It seems to work well with python3-dnf-2.0.0-1.fc26.noarch.
Coudl you set the field "Fixed In Version" and close this BZ?