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: 2025-12-02 01:24 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.

Comment 2 Adam Williamson 2025-12-02 01:24:28 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


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