Skip to content

fix(runtime-sdk): lazily bound ssl module to make boto3 work - #292

Merged
ryanking13 merged 3 commits into
mainfrom
gyeongjae/ssl-getattr
Oct 16, 2026
Merged

ryanking13 merged 3 commits into
mainfrom
gyeongjae/ssl-getattr

Conversation

@ryanking13

Copy link
Copy Markdown
Contributor

Currently, using boto3 in Python workers doesn't work since it tries to import ssl module from urllib3 not from the stdlib ssl.

I would say this is incorrect implementation in boto3, but unfortunately, the maintainers of boto3 is not responding to this for months (boto/botocore#3640).

Since boto3 is top-1-commonly used package in Python (https://pypistats.org/top), keeping it unsupported in Python workers would be bad for us. Therefore, this PR adds a workaround to lazily bound ssl module after the top-level execution.

@ask-bonk

ask-bonk Bot commented Oct 13, 2026

Copy link
Copy Markdown

LGTM

github run

@dom96 dom96 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.

Nice! Thanks for fixing this

Comment thread packages/runtime-sdk/src/_workers_sdk_entropy_import_context.py Outdated
@ryanking13
ryanking13 merged commit f3e7851 into main Oct 16, 2026
19 checks passed
@ryanking13
ryanking13 deleted the gyeongjae/ssl-getattr branch October 16, 2026 05:09
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.

2 participants