Skip to content

Time to upgrade from "boto" to "boto3" #1961

@mdmintz

Description

@mdmintz

Time to upgrade from "boto" to "boto3"

There's an optional S3 Logging plugin available for those who supplied credentials in a custom_settings.py and ran with:

pytest --settings=custom_settings.py

But that's going to stop working in Python 3.12 due to removal of the imp library, unless SeleniumBase upgrades from boto to boto3:

.../lib/python3.11/site-packages/boto/plugin.py:40:
DeprecationWarning:
the imp module is deprecated in favour of importlib and slated for removal in Python 3.12;
see the module's documentation for alternative uses

This is not a pure drop-in replacement, but it shouldn't be difficult to make changes to the code to accommodate the differences between boto and boto3. There's a migration guide that Amazon created to make things easier: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/migrations3.html

Metadata

Metadata

Assignees

Labels

SeleniumBase 4SeleniumBase 4dependenciesThis involves updating a dependency fileenhancementMaking things better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions