Skip to content

Fresh uv install resolves boto3 0.0.3, and importing brainscore_vision fails #239

Done

Description

@albertlieyingadrian

On a fresh environment, uv pip install brainscore-vision installs a package that can't be imported:

$ uv venv -p 3.11 env && uv pip install -p env brainscore-vision
$ env/bin/python -c "import brainscore_vision"
...
  File ".../botocore/vendored/requests/packages/urllib3/_collections.py", line 7, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections'

uv pip list shows boto3==0.0.3, botocore==0.76.0 and python-dateutil==4.0.0.

Cause. python-dateutil 4.0.0 came out on 2026-11-01. Every botocore 1.x requires python-dateutil<3, so uv backtracks boto3 instead of python-dateutil. It lands on boto3 0.0.3, whose botocore 0.x has no dateutil cap. brainscore_core declares boto3 with no lower bound, so that resolution is valid. pip happens to resolve boto3 1.44.2 with python-dateutil 2.9.0.post0, so pip installs still work.

Expected. Any resolver should end up with a boto3 1.x that imports. A lower bound such as boto3>=1.26 in brainscore_core forces the resolver to lower python-dateutil instead.

Activity

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

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