Skip to content

fix(deps): require boto3>=1.26 so resolvers cannot pick boto3 0.x - #240

Merged
KartikP merged 1 commit into
brain-score:mainfrom
albertlieyingadrian:fix/boto3-lower-bound
Nov 28, 2026
Merged

KartikP merged 1 commit into
brain-score:mainfrom
albertlieyingadrian:fix/boto3-lower-bound

Conversation

@albertlieyingadrian

Copy link
Copy Markdown
Contributor

Fixes #239.

Problem. boto3 has no lower bound. Since python-dateutil 4.0.0 (2026-11-01), uv resolves a fresh brainscore-vision install to boto3==0.0.3 / botocore==0.76.0, because every botocore 1.x caps python-dateutil<3. The old botocore imports collections.MutableMapping, so import brainscore_vision fails on Python 3.11. pip still resolves boto3 1.44.2, so pip users aren't affected yet.

Fix. Require boto3>=1.26. With the floor, the resolver lowers python-dateutil to 2.9.0.post0 instead of dropping boto3 to 0.x.

Verification (Python 3.11, macOS):

  • main: uv pip install brainscore-vision gives boto3 0.0.3, and import brainscore_vision raises the ImportError above.
  • This branch, overriding brainscore-core with it: the same install gives boto3 1.44.2, botocore 1.44.2 and python-dateutil 2.9.0.post0, and import brainscore_vision works.
  • brainscore-vision requires brainscore-core>=2.4, so the fix reaches vision installs once a core release with it is published.

@KartikP could you take a look when you have a moment? Happy to adjust the floor.

@albertlieyingadrian

Copy link
Copy Markdown
Contributor Author

About the red Jenkins check: the run shows 262 passed, 3 skipped, and the build is marked failed after the tests finish. The main merge build #224 has the same result (all tests pass, Build Failure). Both logs contain pip's ERROR: pip's dependency resolver ... lines (an h11 conflict during setup), which look like what the log parser flags. So I don't think the failure comes from this change.

@albertlieyingadrian

Copy link
Copy Markdown
Contributor Author

Hi @KartikP, following up on this and #241. #240 adds a boto3>=1.26 floor, so uv pip install brainscore-vision no longer resolves boto3 0.0.3 and fails on import; #241 lets upload_to_s3 take a bucket/folder string the same way the S3 loaders do. Both Jenkins runs pass every test (262 and 276 passed); the build is marked failed afterwards the same way as the main merge build #224. Happy to adjust or split either.

@albertlieyingadrian

Copy link
Copy Markdown
Contributor Author

@KartikP a quick nudge on #240 and #241: both still merge cleanly with main. Happy to adjust or split either.

@albertlieyingadrian

Copy link
Copy Markdown
Contributor Author

@KartikP @mike-ferguson @samwinebrake a quick nudge on this fix: happy to adjust anything, or close it if it's no longer wanted.

@KartikP KartikP self-assigned this Nov 28, 2026
@KartikP

KartikP commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Thanks @albertlieyingadrian, this looks good. The red Jenkins check is not caused by your change: our CI setup installs poetry, which now produces pip resolver ERROR: lines that the log parser treats as a failure (the tests themselves pass). We are fixing that on the CI side and will re-run the build once it lands.

@KartikP KartikP closed this Nov 28, 2026
@KartikP KartikP reopened this Nov 28, 2026

@KartikP KartikP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @albertlieyingadrian . My apologies for the long wait. This LGTM

@KartikP
KartikP merged commit 002f6a7 into brain-score:main Nov 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fresh uv install resolves boto3 0.0.3, and importing brainscore_vision fails

2 participants