Skip to content

Upper constraint for shapely needs to be relaxed for e3sm-unified #1330

@andrewdnolan

Description

@andrewdnolan

Hi there! I'm working with @xylar on configuring and testing the new release of e3sm-unified. We are hitting issue with the current configuration because of pcmdi_metrics, specifically due to your upper constraint on shapely:

- shapely >=2.0.1,<=2.0.6

We are using proj 9.6.2 and pyproj 3.7.2 in this releasee3sm-unified. (The issue actually has to do with the version of geos used by rasterio needed to support proj 9.6.2 being incompatible with the geos version used with upper constraint of shapely). You can reproduce the error we see by trying to create a conda environment with:

conda create -y -n dry-run --dry-run "python=3.13" "proj 9.6.2" "pyproj 3.7.2" "rasterio" "shapely >=2.0.1,<=2.0.6"

The issue is resolved by removing the upper constraint on shapely (i.e):

conda create -y -n dry-run --dry-run "python=3.13" "proj 9.6.2" "pyproj 3.7.2" "rasterio" "shapely >=2.0.1"

From looking through the git blame and PR history, it looks like the shapely constraint was added to suppress some kind of warning message.

What was the warning? Are you OK with easing that upper shapely constraint? If there's any development that's needed to support the newer versions of shapely, @xylar and I are ready and willing to help with that.

CC @chengzhuzhang @tomvothecoder

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