Skip to content

uv add sagemaker fails on 3.13 #5233

@georgettica

Description

@georgettica

Describe the bug
issue in the build system to install sagemaker in python 3.13

To reproduce

uv init
uv add sagemaker

Expected behavior
passes (as happens when I uv init -p 3.11)

Screenshots or logs

Using CPython 3.13.5 interpreter at: /opt/homebrew/opt/[email protected]/bin/python3.13
Creating virtual environment at: .venv
Resolved 66 packages in 19ms
  × Failed to build `numpy==1.26.4`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `mesonpy.build_wheel` failed (exit status: 1)

      [stdout]
      + $HOME/.cache/uv/builds-v0/.tmpaHDKNM/bin/python
      $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src/vendored-meson/meson/meson.py
      setup $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src
      $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src/.mesonpy-3iq78m64
      -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md
      --native-file=$HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src/.mesonpy-3iq78m64/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.99
      Source dir: $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src
      Build dir:
      $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src/.mesonpy-3iq78m64
      Build type: native build
      Project name: NumPy
      Project version: 1.26.4

      ../meson.build:1:0: ERROR: Compiler cc cannot compile programs.

      A full log can be found at
      $HOME/.cache/uv/sdists-v9/pypi/numpy/1.26.4/aIrPIvrxb2IaYOyQMdKeI/src/.mesonpy-3iq78m64/meson-logs/meson-log.txt

      hint: This usually indicates a problem with the package or the build environment.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip
        locking and syncing.

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: latest
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): N/A
  • Framework version: N/A
  • Python version: 3.13
  • CPU or GPU: N/A
  • Custom Docker image (Y/N): N/A

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions