Bug 1389626

Summary: Attribute Error: 'Query' object has no attribute 'na_dict'
Product: [Fedora] Fedora Reporter: Peter Trenholme <PTrenholme>
Component: yumex-dnfAssignee: Björn 'besser82' Esser <besser82>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: chepioq, pwhalen, tla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-09 20:50:09 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 Peter Trenholme 2016-10-28 04:28:05 UTC
Description of problem: AttributeError: 'Query' object has no attribute 'na_dict'

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

How reproducible: Every time

Steps to Reproduce: Start yumex-dnf in a terminal window.

Actual results: Python trace-back (See below: Additional info section.) Note that attempting to start the app from the .desktop file results in no display, but (as far as I recall since I seldom use the desktop files) no abrt action.

Expected results: Normal running

Additional info:
g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/__init__.py", line 83, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/share/dnfdaemon/dnfdaemon-system", line 207, in SetConfig
    rc = self.set_option(setting, value)
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/__init__.py", line 680, in set_option
    if hasattr(self.base.conf, option):
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/__init__.py", line 202, in base
    self._get_base()
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/__init__.py", line 1054, in _get_base
    self._base.setup_base()
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/backend.py", line 71, in setup_base
    self._packages = Packages(self)
  File "/usr/lib/python3.5/site-packages/dnfdaemon/server/backend.py", line 273, in __init__
    self._inst_na = self._sack.query().installed().na_dict()
AttributeError: 'Query' object has no attribute 'na_dict'
 (36)

Comment 1 Paul Whalen 2016-12-14 15:52:37 UTC
Still affects Rawhide using 'yumex-dnf-4.3.3-2.fc25.noarch'

Comment 2 Paul Whalen 2016-12-14 15:55:13 UTC
*** Bug 1400279 has been marked as a duplicate of this bug. ***

Comment 3 dominique 2017-01-04 19:07:35 UTC
same problem with python3.6 : 

g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/__init__.py", line 83, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/share/dnfdaemon/dnfdaemon-system", line 207, in SetConfig
    rc = self.set_option(setting, value)
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/__init__.py", line 680, in set_option
    if hasattr(self.base.conf, option):
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/__init__.py", line 202, in base
    self._get_base()
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/__init__.py", line 1054, in _get_base
    self._base.setup_base()
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/backend.py", line 71, in setup_base
    self._packages = Packages(self)
  File "/usr/lib/python3.6/site-packages/dnfdaemon/server/backend.py", line 273, in __init__
    self._inst_na = self._sack.query().installed().na_dict()
AttributeError: 'Query' object has no attribute 'na_dict'
 (36)

Comment 4 Fedora End Of Life 2017-02-28 10:31:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 5 Fedora Admin XMLRPC Client 2017-03-22 10:10:18 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2017-03-23 18:03:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Björn 'besser82' Esser 2017-04-09 20:50:09 UTC
Should be fixed in recent version of `dnfdaemon`.