Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error with botocore dependency, not reproducible #5267

Open
D3SL opened this issue Feb 11, 2025 · 0 comments
Open

bug: Error with botocore dependency, not reproducible #5267

D3SL opened this issue Feb 11, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@D3SL
Copy link

D3SL commented Feb 11, 2025

Describe the bug

I have a flow that repeatedly runs 7 python scripts in parallel (branch-to-all inside of a for-loop). Today 2/7 scripts gave errors related to botocore during a single loop iteration.

One error was ModuleNotFoundError for botocore.vendored, the other was DataNotFoundError for endpoints. When I tried to rerun the exact same scripts, inputs, and source data manually everything worked fine. Some googling suggests the former is tied to the installation method of boto3 and aws-cli, and the latter may have something to do with json files boto3 uses in its directory.

To reproduce

The endpoints error was triggered by this code:

    bucket = wmill.get_resource("f/storage/garage_s3")["bucket"]
    s3 = s3fs.S3FileSystem(**wmill.polars_connection_settings().s3fs_args)
    storage_options = wmill.polars_connection_settings().storage_options

    dataframe= pl.read_parquet("s3://{}/{}".format(bucket, input_s3_obj["s3"]),
        storage_options=storage_options
    )

I'm not certain but I think the ModuleNotFoundError was caused by importing s3fs.

Expected behavior

The script to run and be able to read and write parquet files from an S3 compatible system.

Screenshots

No response

Browser information

No response

Application version

CE v1.458.3

Additional Context

Logs:
botocore error unable to load endpoints.json
windmill_logs_0194f3ea-cdba-ce82-9f9a-02649c7cf265.txt

@D3SL D3SL added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants