Bug 1398874 - "dnf repoquery --unsatisfied" fails under rawhide
Summary: "dnf repoquery --unsatisfied" fails under rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1399233 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-26 21:49 UTC by Bill Gianopoulos
Modified: 2017-01-02 08:45 UTC (History)
7 users (show)

Fixed In Version: dnf-2.0.0-1.fc26.noarch
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-02 08:45:41 UTC
Type: Bug


Attachments (Terms of Use)

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?


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