Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  DNF on AIX 7.3

    Posted Wed August 11, 2021 04:59 AM
    Hi guys,

    it doesn't work for me :-(

    # /opt/freeware/bin/python3_64
    Python 3.7.9 (default, Mar 30 2021, 00:48:16)
    [GCC 8.3.0] on aix7
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import dnf
    error: Failed to initialize NSS library
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
    import dnf.base
    File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 31, in <module>
    from dnf.comps import CompsQuery
    File "/opt/freeware/lib/python3.7/site-packages/dnf/comps.py", line 27, in <module>
    from dnf.exceptions import CompsError
    File "/opt/freeware/lib/python3.7/site-packages/dnf/exceptions.py", line 22, in <module>
    import dnf.util
    File "/opt/freeware/lib/python3.7/site-packages/dnf/util.py", line 30, in <module>
    import dnf.callback
    File "/opt/freeware/lib/python3.7/site-packages/dnf/callback.py", line 22, in <module>
    import dnf.yum.rpmtrans
    File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
    import rpm
    File "/opt/freeware/lib64/python3.7/site-packages/rpm/__init__.py", line 39, in <module>
    from rpm.transaction import *
    File "/opt/freeware/lib64/python3.7/site-packages/rpm/transaction.py", line 5, in <module>
    from rpm._rpm import ts as TransactionSetCore
    ImportError: cannot import name 'ts' from 'rpm._rpm' (/opt/freeware/lib64/python3.7/site-packages/rpm/_rpm.so)

    It is installed from AIX 7.3 bundle, but throws this message when I try to start it:

    error: Failed to initialize NSS library

    Any ideas?

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF on AIX 7.3

    Posted Wed August 11, 2021 07:57 AM
    Hi Andrey,

    Please try it with the latest build which should solve this error.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: DNF on AIX 7.3

    Posted Wed August 11, 2021 12:30 PM
    Hi Sangamesh,

    thank you for the reply. I'll try to get a newer build.

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------