Skip to content

pip install cm4mlops failing in docker #503

@anandhu-eng

Description

@anandhu-eng

The install command fails in docker with sudo not installed:

Collecting cm4mlops
  Downloading cm4mlops-0.3.24.tar.gz (8.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from cm4mlops) (0.34.2)
Collecting giturlparse
  Using cached giturlparse-0.12.0-py2.py3-none-any.whl (15 kB)
Collecting setuptools>=60
  Using cached setuptools-75.3.0-py3-none-any.whl (1.3 MB)
Processing /root/.cache/pip/wheels/32/8d/61/9e6381610aee1e09f91b79c8a6ade385337f7471db00d1c2ce/cmind-3.3.4-py3-none-any.whl
Collecting pyyaml
  Using cached PyYAML-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (746 kB)
Collecting requests
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (143 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Building wheels for collected packages: cm4mlops
  Building wheel for cm4mlops (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmpmob88fx9 build_wheel /tmp/tmp3gbys6zn
       cwd: /tmp/pip-install-dgzb8leh/cm4mlops
  Complete output (5 lines):
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install
  error: [Errno 2] No such file or directory: 'sudo'
  ----------------------------------------
  ERROR: Failed building wheel for cm4mlops
Failed to build cm4mlops
ERROR: Could not build wheels for cm4mlops which use PEP 517 and cannot be installed directly

container used was ubuntu20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions