Power

 View Only
  • 1.  yum broke over python2.7:"/opt/freeware/lib/python2.7/site-packages/sqlite/main.py", line 446

    Posted Thu April 27, 2023 01:19 PM

    : /opt/freeware/lib/python2.7/test $yum list
    Traceback (most recent call last):
      File "/usr/bin/yum", line 32, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
        errcode = main(args)
      File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
        result, resultmsgs = base.doCommands()
      File "/opt/freeware/share/yum-cli/cli.py", line 436, in doCommands
        self._getTs(needTsRemove)
      File "/opt/freeware/lib/python2.7/site-packages/yum/depsolve.py", line 101, in _getTs
        self._getTsInfo(remove_only)
      File "/opt/freeware/lib/python2.7/site-packages/yum/depsolve.py", line 112, in _getTsInfo
        pkgSack = self.pkgSack
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 900, in <lambda>
        pkgSack = property(fget=lambda self: self._getSacks(),
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 681, in _getSacks
        self.repos.populateSack(which=repos)
      File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
        sack.populate(repo, mdtype, callback, cacheonly)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 179, in populate
        dobj = repo.cacheHandler.open_database(db_un_fn)
      File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 31, in open_database
        con = sqlite.connect(filename)
      File "/opt/freeware/lib/python2.7/site-packages/sqlite/__init__.py", line 61, in connect
        return Connection(*args, **kwargs)
      File "/opt/freeware/lib/python2.7/site-packages/sqlite/main.py", line 446, in __init__
        self.db = _sqlite.connect(database, mode)
    _sqlite.DatabaseError: unable to open database file
    root @   /opt/freeware/lib/python2.7/test $rpm -qa
    rsync-2.6.2-1.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    curl-7.52.1-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.10-1.ppc
    libgcc10-10.3.0-6.ppc
    libstdc++10-10.3.0-6.ppc
    libstdc++-10-2.ppc
    libffi-3.4.2-1.ppc
    db-5.3.28-1.ppc
    openldap-2.5.12-1.ppc
    xz-libs-5.2.5-1.ppc
    glib2-2.56.1-3.ppc
    libunistring-0.9.10-1.ppc
    gettext-0.21-2.ppc
    info-6.7-1.ppc
    popt-1.18-1.ppc
    sqlite-3.39.3-1.ppc
    libtasn1-4.16.0-1.ppc
    coreutils-9.0-1.ppc
    gnutls-3.7.2-1.ppc
    expat-2.5.0-1.ppc
    python3-3.7.15-2.ppc
    samba-devel-4.16.8-1.ppc
    samba-client-4.16.8-1.ppc
    samba-winbind-clients-4.16.8-1.ppc
    samba-4.16.8-1.ppc
    scrub-2.0-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    pysqlite-1.1.7-2.ppc
    ca-certificates-2016.10.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    yum-3.4.3-8.noarch
    python-tools-2.7.10-1.ppc
    AIX-rpm-7.1.4.1-15.ppc
    libgcc-10-2.ppc
    zlib-1.2.13-1.ppc
    ncurses-6.3-1.ppc
    libgomp-10-2.ppc
    cyrus-sasl-2.1.28-1.ppc
    libgomp10-10.3.0-6.ppc
    libxml2-2.10.3-1.ppc
    libtextstyle-0.21-2.ppc
    libiconv-1.17-1.ppc
    bash-5.1.16-1.ppc
    sudo-1.9.12p2-1.ppc
    readline-8.1-1.ppc
    gmp-6.2.1-1.ppc
    p11-kit-0.23.22-1.ppc
    nettle-3.7.3-1.ppc
    gdbm-1.23-1.ppc
    bzip2-1.0.8-2.ppc
    samba-libs-4.16.8-1.ppc
    samba-common-4.16.8-1.ppc
    libsmbclient-4.16.8-1.ppc
    samba-winbind-4.16.8-1.ppc


    Any tweaking I can do to resolve this  ? Suggestions will be much appreciated



    ------------------------------
    Dharma Sanassy
    ------------------------------


  • 2.  RE: yum broke over python2.7:"/opt/freeware/lib/python2.7/site-packages/sqlite/main.py", line 446

    Posted Fri April 28, 2023 09:36 AM

    I do not know what version of AIX you are running and what is the problem. 
    test below on test server 
    DNF replaced Yum. install DNF - install openssl and openssh  from IBM then try to fix your problem.



    ------------------------------
    minesh patel
    ------------------------------



  • 3.  RE: yum broke over python2.7:"/opt/freeware/lib/python2.7/site-packages/sqlite/main.py", line 446

    Posted Fri April 28, 2023 10:01 AM

    Thank you Minesh. I will try that .
    My machine is AIX 7.1.4.2 
    $openssl version
    OpenSSL 1.1.1l  24 Aug 2021
     openssh                    5.6.0.1 

    Just curious if the Python 3.3 version is causing this issue - 
    python3-3.7.15-2.ppc  - see the listing of all rpm pkgs above

    Right now I am totally disabled in using Yum

    Thanks
    Dharma



    ------------------------------
    Dharma Sanassy
    ------------------------------



  • 4.  RE: yum broke over python2.7:"/opt/freeware/lib/python2.7/site-packages/sqlite/main.py", line 446

    Posted Mon May 01, 2023 10:03 AM

    try this links.

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/librepo/librepo-1.11.0-101.aix7.1.ppc.rpm
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/librepo/python3-librepo-1.11.0-101.aix7.1.ppc.rpm
    https://community.ibm.com/community/user/power/discussion/recent-dnf-and-yum-issues-with-newer-python3-and-curl-builds



    ------------------------------
    minesh patel
    ------------------------------