Skip to content

Python 3.13 support not present for spatialdata >= 0.3.0 from conda #1054

Description

@shashkat

Minimal working example

$ conda create -n temp python=3.13
$ conda activate temp
$ conda install conda-forge::spatialdata==0.3.0

Output
Channels:
- conda-forge
- bioconda
- r
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
- package spatialdata-0.3.0-pyhd8ed1ab_0 requires python >=3.10,<3.13, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ pin on python 3.13.* =* * is installable and it requires
│  └─ python =3.13 *, which can be installed;
└─ spatialdata ==0.3.0 * is not installable because it requires
└─ python >=3.10,<3.13 *, which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:
- python=3.13

Describe the bug

The latest spatialdata-feedstock at conda-forge still seems to have the python<3.13 constraint (https://github.com/conda-forge/spatialdata-feedstock/blob/51e4845ff4698ecdf75bc882f899beb1058e75f5/recipe/meta.yaml#L23), even though the discussion at #964 states that spatialdata should support it now. Just curious if this is intentional or not. A side-effect of this is that installing latest squidpy (v1.7.0) in python3.13 environment using conda is difficult because squidpy1.7.0 requires spatialdata>=0.6.0, which requires python<3.13.

Additional context

This is the link to the commit in the spatialdata-feedstock that added the constraint of python<3.13: conda-forge/spatialdata-feedstock@1cbe783.

Thanks a lot!

Activity

  1. LucaMarconato commented on Feb 1, 2026

    @LucaMarconato
    Member

    Thanks for reporting, should get fixed when the new conda-forge distribution is out: conda-forge/spatialdata-feedstock#30

    If you need 3.13 also for older spatialdata versions please make a patch (see an example here conda-forge/spatialdata-feedstock#17).

  2. Zethson commented on Mar 9, 2026

    @Zethson
    Member
      error    libmamba Could not solve for environment specs
          The following packages are incompatible
          ├─ python 3.13.12*  is requested and can be installed;
          └─ spatialdata 0.7.2*  is not installable because it requires
             └─ python >=3.11,<3.13 , which conflicts with any installable versions previously reported.
      critical libmamba Could not solve for environment specs
    

    are you sure @LucaMarconato ?

  3. Zethson commented on Jun 21, 2026

    @Zethson
    Member

    @LucaMarconato can I kindly lobby for you to fix this? In my humble opinion, installation issues are always of highest priority and should always be solved immediately. They hinder adoption and are a main cause of frustration. I'd love to update my best practice book environments.

  4. LucaMarconato commented on Jun 22, 2026

    @LucaMarconato
    Member

    Being worked on in https://github.com/conda-forge/spatialdata-feedstock/pulls?q=sort%3Aupdated-desc+is%3Apr+state%3Aopen+. This will affect only the latest released version. If you need python3.13 in a older version please open a PR directly with a patch (see an example here conda-forge/spatialdata-feedstock#17).

  5. LucaMarconato commented on Jun 22, 2026

    @LucaMarconato
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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