Re: Python Error From DNF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/23/24 2:56 PM, Stephen Morris wrote:
On 24/10/24 08:41, Stephen Morris wrote:
Hi,
    Since the last couple of updates when I run "sudo dnf upgrade" I get the following python error, is someone able to tell me what it means please?

Traceback (most recent call last):
 File "/usr/lib/python3.12/site-packages/dnf/plugin.py", line 108, in _caller
   getattr(plugin, method)()
 File "/usr/lib/python3.12/site-packages/dnf-plugins/perfmetrics.py", line 111, in pre_transaction
   "package_size": member.pkg.size,
                   ^^^^^^^^^^
 File "/usr/lib/python3.12/site-packages/dnf/db/history.py", line 157, in pkg
   return self._swdb.rpm._swdb_ti_pkg[self._item]
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: <libdnf.transaction.TransactionItem; proxy of <Swig Object of type 'std::shared_ptr< libdnf::TransactionItem > *' at 0x7f01b922ebe0> >

On completion of the dnf upgrade process I also get the following error:

Traceback (most recent call last):
 File "/usr/lib/python3.12/site-packages/dnf/plugin.py", line 108, in _caller
    getattr(plugin, method)()
 File "/usr/lib/python3.12/site-packages/dnf-plugins/perfmetrics.py", line 122, in transaction
    (time.time() - self.transaction_start_time) * 1000
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DnfPerfMetrics' object has no attribute 'transaction_start_time'

It seems that at some point you installed the python3-dnf-plugin-perfmetrics package.

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux