Power

 View Only

Getting multiple error while installing oracledb utility on AIX 7.3 using phython3

  • 1.  Getting multiple error while installing oracledb utility on AIX 7.3 using phython3

    Posted Wed September 25, 2024 09:57 AM

    Hello All,

    While installing the oracledb on AIX 7.3 using python3 -m pip install oracledb command getting mutliple error.

    note - I have installed xlC complier as well as gcc 10 but its getting failed while installing 

    Getting multipl 

    bash-5.2# python3 -m pip install oracledb
    Collecting oracledb
      Using cached oracledb-2.4.1.tar.gz (614 kB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Collecting cryptography>=3.2.1 (from oracledb)
      Using cached cryptography-43.0.1.tar.gz (686 kB)
      Installing build dependencies ... error
      error: subprocess-exited-with-error

      pip subprocess to install build dependencies did not run successfully.
      exit code: 1

      [62 lines of output]
      Collecting maturin<2,>=1
        Using cached maturin-1.7.3.tar.gz (190 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting cffi>=1.12
        Using cached cffi-1.17.1-cp39-cp39-aix_7302_2345_64.whl
      Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1
        Using cached setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB)
      Collecting tomli>=1.1.0 (from maturin<2,>=1)
        Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
      Collecting pycparser (from cffi>=1.12)
        Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
      Using cached setuptools-75.1.0-py3-none-any.whl (1.2 MB)
      Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
      Using cached pycparser-2.22-py3-none-any.whl (117 kB)
      Building wheels for collected packages: maturin
        Building wheel for maturin (pyproject.toml): started
        Building wheel for maturin (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        Building wheel for maturin (pyproject.toml) did not run successfully.
        exit code: 1

        [28 lines of output]
        running bdist_wheel
        running build
        running build_py
        creating build/lib.aix-7302-2345-64-cpython-39/maturin
        copying maturin/__init__.py -> build/lib.aix-7302-2345-64-cpython-39/maturin
        copying maturin/__main__.py -> build/lib.aix-7302-2345-64-cpython-39/maturin
        running egg_info
        writing maturin.egg-info/PKG-INFO
        writing dependency_links to maturin.egg-info/dependency_links.txt
        writing requirements to maturin.egg-info/requires.txt
        writing top-level names to maturin.egg-info/top_level.txt
        reading manifest file 'maturin.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        warning: no files found matching '*.json' under directory 'src/python_interpreter'
        writing manifest file 'maturin.egg-info/SOURCES.txt'
        running build_ext
        running build_rust
        error: can't find Rust compiler

        If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

        To update pip, run:

            pip install --upgrade pip

        and then retry package installation.

        If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for maturin
      Failed to build maturin
      ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (maturin)
      [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    pip subprocess to install build dependencies did not run successfully.
    exit code: 1

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    if anyone have any workaround then please share it.


    Thanks.



    ------------------------------
    Rahul Kawade
    ------------------------------