AIOps

AIOps

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#ITAutomation
#AIOps
#CloudPakforAIOps
#AIOps

 View Only
  • 1.  building milvus_cli for >=rhel9.4 on IBM Power

    Posted Wed November 12, 2025 02:29 PM

    Dear all

    trying to build the milvus_cli on >= rhel9.4 on power.
    yes conda builds for an older version, but i need milvus version2 and >= python3.11
    pip fails with the grpcio wheel build. Uses boringssl
    2025-11-12T17:09:14,369   third_party/boringssl-with-bazel/src/include/openssl/target.h:74:2: error: #error "Unknown target CPU"
    2025-11-12T17:09:14,370      74 | #error "Unknown target CPU"
    switch to openssl
    DgRPC_SSL_PROVIDER=openssl
    GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true
    gets rid of the Unknown target CPU error but eventually fails the build.

    whether i use 
    pip install torch  seqeval accelerate pymilvus sentence-transformers transformers langchain  numPy
    or just
    pip install --no-cache-dir --force-reinstall milvus_cli
    in the VM or in a venv. still fails,

    error below
    Successfully built pandas numpy
    Failed to build grpcio
    error: failed-wheel-build-for-install

    × Failed to build installable wheels for some pyproject.toml based projects
    ╰─> grpcio

    if i force grpcio reinstall, no cache, it builds on its own , the subsequent build of milvus_cli also works , but execution of milvus_cli is broken.
     
    Has anyone built this successfully on linux on power for milvus v2 ?
    Can anyone please help in this process?

    Thanks

    Ian



    ------------------------------
    Ian Bellinfantie
    ------------------------------


  • 2.  RE: building milvus_cli for >=rhel9.4 on IBM Power

    Posted 24 days ago

    Resolved

    python -m venv my_vdev
    source my_vdev/bin/activate
    (my_vdev)[]$ sudo dnf install python3.11-pip
    (my_vdev)[]$ sudo dnf groupinstall "development tools"
    (my_vdev)[]$ sudo dnf install python3.11-devel
    (my_vdev)[]$ sudo dnf install gcc-gfortran
    (my_vdev)[]$ sudo dnf install openblas-devel
    (my_vdev)[]$ sudo dnf install libjpeg-turbo-devel
    (my_vdev)[]$ sudo dnf install gcc openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel readline-devel sqlite-devel tk-devel gdbm-devel libuuid-devel ncurses-devel
    (my_vdev)[]$ sudo dnf install cmake
    (my_vdev)[]$ pip install --upgrade pip
    (my_vdev)[]$ pip install --upgrade setuptools
    (my_vdev)[]$ pip config set global.extra-index-url  https://wheels.developerfirst.ibm.com/ppc64le/linux
    (my_vdev)[]$ pip install --no-cache-dir --force-reinstall wheel
    (my_vdev)[]$ export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
    (my_vdev) []$ export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
     
    (my_vdev) []$ pip install --no-cache-dir --force-reinstall grpcio
    Looking in indexes: https://pypi.org/simple, https://wheels.developerfirst.ibm.com/ppc64le/linux
    Collecting grpcio
      Downloading grpcio-1.76.0.tar.gz (12.8 MB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.8/12.8 MB 10.6 MB/s  0:00:01
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Collecting typing-extensions~=4.12 (from grpcio)
      Downloading typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
    Downloading typing_extensions-4.15.0-py3-none-any.whl (44 kB)
    Building wheels for collected packages: grpcio
      Building wheel for grpcio (pyproject.toml) ... done
      Created wheel for grpcio: filename=grpcio-1.76.0-cp311-cp311-linux_ppc64le.whl size=182778098 sha256=d6e0d35789eb8eb435f35739bc66da709f3cb78febc24ea030c708991d4d2954
      Stored in directory: /tmp/pip-ephem-wheel-cache-7bss19y5/wheels/26/9c/5e/8a7d04471639962953fc774e062de0b6b6f479863051788a39
    Successfully built grpcio
    Installing collected packages: typing-extensions, grpcio
      Attempting uninstall: typing-extensions
        Found existing installation: typing_extensions 4.15.0
        Uninstalling typing_extensions-4.15.0:
          Successfully uninstalled typing_extensions-4.15.0
    Successfully installed grpcio-1.76.0 typing-extensions-4.15.0
     
     (my_vdev)[]$ pip install torch  pyMilvus sentence-transformers transformers langchain  numPy
     (my_vdev)[]$ pip install  milvus_cli



    ------------------------------
    Ian Bellinfantie
    ------------------------------