Skip to content

MLServer installation fails on macOS due to tritonclient 2.61+ perf-analyzer dependency #2280

@yesid-lopez

Description

@yesid-lopez

Problem

MLServer 1.7.1 cannot be installed on macOS when poetry/pip resolves to tritonclient >= 2.61.0, because tritonclient 2.61+ introduced perf-analyzer as a hard dependency, which only provides Linux wheels (no macOS support).

Error

RuntimeError: Unable to find installation candidates for perf-analyzer (2.59.1)

Root Cause

  • MLServer requires: tritonclient >= 2.42 with [http] extras
  • tritonclient 2.61.0+ added perf-analyzer as a mandatory dependency
  • perf-analyzer only distributes manylinux wheels (no macOS/Darwin wheels available)
  • This blocks all macOS users from installing MLServer with default dependency resolution

Impact

  • Prevents local development on macOS
  • Forces developers to use Docker/Linux VMs for basic MLServer development
  • Affects the developer experience for a significant portion of the ML community

Current Workaround

Pin tritonclient to pre-2.61 versions:

tritonclient = {version = ">=2.42,<2.61", extras = ["http"]}

Environment

  • OS: macOS (Darwin)
  • MLServer version: 1.7.1
  • tritonclient version: 2.61.0
  • Python: 3.11

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