AIX Open Source

 View Only
Expand all | Collapse all

DNF Issue

  • 1.  DNF Issue

    Posted Thu November 23, 2023 05:09 PM

    Hi Ayappan,

    I got following error when trying to launch DNF. It was fine after Python 3.9 upgrade. The file /opt/freeware/lib64/python3.9/site-packages/libcomps/ was there. Should I reinstall libcomps? But giving the situation dnf itself doesn't work, how can I reinstall it?



    root: dnf
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/", line 31, in <module>
        from dnf.comps import CompsQuery
      File "/opt/freeware/lib/python3.9/site-packages/dnf/", line 36, in <module>
        import libcomps
      File "/opt/freeware/lib64/python3.9/site-packages/libcomps/", line 1, in <module>
        from ._libpycomps import *
    ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libcomps/
    System error: Exec format error

    Mi Wang

  • 2.  RE: DNF Issue

    Posted Fri November 24, 2023 01:40 AM