Skip to content

Can't use sagemaker-python-sdk >=2.236.0 with Python 3.11 due to omegaconf pin #4995

@claytonparnell

Description

@claytonparnell

Please update omegaconf pin to support 2.3 (currently pinned to <2.3)

  • SageMaker Python SDK version: >= 2.236.0

sm-python-sdk pins to "omegaconf>=2.2,<2.3", but omegaconf 2.2 doesn't support Python 3.11. Therefore see issue trying to install newer sagemaker-python-sdk:

error    libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ pin-1 is installable and it requires
    │  └─ python 3.11.* , which can be installed;
    └─ sagemaker-python-sdk 2.237.3  is not installable because it requires
       └─ omegaconf >=2.2,<2.3  but there are no viable options
          ├─ omegaconf [2.2.2|2.2.3] would require
          │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
          ├─ omegaconf [2.2.2|2.2.3] would require
          │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
          ├─ omegaconf [2.2.2|2.2.3] would require
          │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
          ├─ omegaconf [2.2.2|2.2.3] would require
          │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
          └─ omegaconf 2.2.3 would require
             └─ python >=3.7,<3.11 , which conflicts with any installable versions previously reported.

Given that sagemaker-python-sdk supports Python 3.11, we need to either remove this dependency or raise the pin.

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