AIX Open Source

 View Only
  • 1.  Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Tue May 02, 2023 05:24 PM

    Hello,

    We have installed AIX Toolbox's libgfortran, openblas and numpy. When I tried to install matplotlib 3.2.2, I got the following errors (not sure if the 2nd error was caused by 1st one). Please help:

    " ImportError: Could not load module /opt/freeware/lib/libopenblas.a(libopenblas.so.0).
            Dependent module libgfortran.a(libgfortran.so.5) could not be loaded.
        Could not load module libgfortran.a(libgfortran.so.5).
        System error: No such file or directory
        Could not load module /opt/freeware/lib64/python3.7/site-packages/numpy/core/_multiarray_umath.so.
            Dependent module /opt/freeware/lib/libopenblas.a(libopenblas.so.0) could not be loaded."

    "

    IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

     

        Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed."

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------


  • 2.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Wed May 03, 2023 03:11 AM

    From the error message, it looks like libgfortran.a(libgfortan.so.5) is not found by openblas library. Please check whether you have the proper libgfortran rpms installed. 
    Check "rpm -qa | grep libgfortran" 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Wed May 03, 2023 10:42 AM

    Hi Ayappan P,

    Please find the command output:

    root: rpm -qa | grep libgfortran
    libgfortran8-8.3.0-7.ppc
    libgfortran-10-2.ppc

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 4.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Thu May 04, 2023 07:06 AM

    You have just the meta-package "libgfortran-10-2.ppc" which only provides the symlinks. The actual files are provided by libgfortran10-<version>-<release> package.. You need to install that one.
    You can get it from -->
                 https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/gcc10/   (for AIX 7.3)
                 https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc10/   (for AIX 7.2)
                 https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/gcc10/   (for AIX 7.1)



    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Fri May 05, 2023 10:21 AM

    Hi Ayappan P,

    It works. Thanks. By the way, the building of matplotlib requires many packages from AIX Toolbox. I am wondering when the new AIX Toolbox + python 3.9.16 is available and we do upgrade, will those already installed packages be upgraded automatically?

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 6.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Fri May 05, 2023 10:43 AM
    Edited by Ayappan P Fri May 05, 2023 10:43 AM

    There are some steps that needs to be followed to smoothly migrate from python3.7 to python3.9. 
    We will come up with a blog for that. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 7.  RE: Compatibility of AIX Toolbox's libgfortran, openblas and numpy with PYPI packages

    Posted Mon June 12, 2023 03:42 PM

    Hi Ayappan,

    I am wondering if the new python 3.9.16 and the associated Toolbox are available now? If yes, is there is a way for us to download the new Toolbox repository like the file ESD-Toolbox_for_Linux_Apps_Common_7.1-7.3_122022_LKT010325.tar.gz for current Toolbox?

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------