Bug 2322761 - Error at start up dnfdragora (fedora 41) and python3
Summary: Error at start up dnfdragora (fedora 41) and python3
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnfdragora
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-30 17:41 UTC by MicMor
Modified: 2024-11-11 08:23 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description MicMor 2024-10-30 17:41:57 UTC
next : https://bugzilla.redhat.com/show_bug.cgi?id=2310097

Upgrade fedora 40 (kde plasma) --> fedora 41  (kde plasma)

Method: 
sudo dnf upgrade --refresh
sudo dnf system-upgrade download --releasever=41
sudo dnf system-upgrade reboot

launch dnfdragora

 
g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib64/python3.13/site-packages/dbus/service.py", line 712, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.13/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/share/dnfdaemon/dnfdaemon-system", line 239, in GetPackages
    value = self.get_packages_ndsg(pkg_filter)
  File "/usr/lib/python3.13/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/lib/python3.13/site-packages/dnfdaemon/server/__init__.py", line 408, in get_packages_ndsg
    pkgs = getattr(self.base.packages, pkg_filter)
AttributeError: 'NoneType' object has no attribute 'installed'
 (36)


dnf -Cq list --installed \*dnf\*
Installed packages
dnf-data.noarch                 4.21.1-2.fc41  updates
dnf-plugins-core.noarch         4.9.0-1.fc41   fedora
dnf5.x86_64                     5.2.6.2-1.fc41 fedora
dnf5-plugins.x86_64             5.2.6.2-1.fc41 fedora
dnfdaemon.noarch                0.3.22-3.fc41  fedora
dnfdaemon-selinux.noarch        0.3.22-3.fc41  fedora
libdnf.x86_64                   0.73.3-1.fc41  <unknown>
libdnf5.x86_64                  5.2.6.2-1.fc41 <unknown>
libdnf5-cli.x86_64              5.2.6.2-1.fc41 <unknown>
python3-dnf.noarch              4.21.1-2.fc41  <unknown>
python3-dnf-plugins-core.noarch 4.9.0-1.fc41   <unknown>
python3-libdnf.x86_64           0.73.3-1.fc41  <unknown>


Reproducible: Always

Steps to Reproduce:
1. Start dnfdragora on the command line or with the graphical interface

Comment 1 Alvaro Castañeda 2024-11-11 08:23:37 UTC
Updated do fedora 41 today and found this same problem and found how to solve it at least in my case,here is for those of you who may run into it.

The problem was a nonexistent repo. I added geogebra repo some years ago, but it looks like it no longer exists. I just erase /etc/yum.repos.d/geogebra.repo and now dnfdragora works as expected.

So I think that "AttributeError: 'NoneType' object has no attribute 'installed'" is because the repository no longer exists and there is a None value going in some variable. Need to say this didn't happen in fedora 40.


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