Bug 1389626 - Attribute Error: 'Query' object has no attribute 'na_dict'
Summary: Attribute Error: 'Query' object has no attribute 'na_dict'
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex-dnf
Version: 26
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Björn 'besser82' Esser
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1400279 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-28 04:28 UTC by Peter Trenholme
Modified: 2017-04-09 20:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-09 20:50:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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`.


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