Repository navigation
fix(deps): require boto3>=1.26 so resolvers cannot pick boto3 0.x - #240
Conversation
|
About the red Jenkins check: the run shows |
|
Hi @KartikP, following up on this and #241. #240 adds a |
|
@KartikP @mike-ferguson @samwinebrake a quick nudge on this fix: happy to adjust anything, or close it if it's no longer wanted. |
|
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 |
KartikP
left a comment
There was a problem hiding this comment.
Thanks @albertlieyingadrian . My apologies for the long wait. This LGTM
Fixes #239.
Problem.
boto3has no lower bound. Since python-dateutil 4.0.0 (2026-11-01), uv resolves a freshbrainscore-visioninstall toboto3==0.0.3/botocore==0.76.0, because every botocore 1.x capspython-dateutil<3. The old botocore importscollections.MutableMapping, soimport brainscore_visionfails 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-visiongives boto3 0.0.3, andimport brainscore_visionraises the ImportError above.brainscore-corewith it: the same install gives boto3 1.44.2, botocore 1.44.2 and python-dateutil 2.9.0.post0, andimport brainscore_visionworks.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.