Skip to content

Episode 2.4: Python 3.10 build has requirements issues #512

@smangham

Description

@smangham

Ran into a very odd one today. contourpy, a dependency of MatPlotLib, has been updated since the material was written and no longer supports Python 3.10. If you pip install MatPlotLib unpinned, as instructed in section 1.2, then Python 3.12+ (probably 3.11 too?) will install contourpy==1.3.3.

This means that when you freeze your local environment to your requirements file, you end up with contourpy=1.3.3 in it, which means the CI grid immediately falls over because it can't install in 3.10.

As 3.10 is out-of-support at the end of the year, the easiest fix is to just bump the range up to go from 3.11.

However... this is sort of another argument for switching to UV (#491) as we could just explicitly specify the Python version, to avoid these kinds of problems in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions