Skip to content

[python] tcp connect error reading from a public s3 bucket with {"anon": "true"} #1554

Closed as not planned
@j-bennet

Description

@j-bennet

Environment

Delta-rs version: 0.10.0

Binding: Python

Environment:

  • Cloud provider:
  • OS: macOS Ventura 13.4
  • Other:

Bug

What happened:

Can't read a table from a public s3 bucket:

from deltalake import DeltaTable
storage_options = {"AWS_REGION": "us-east-2", "anon": "true"}
dt = DeltaTable("s3://coiled-datasets/h2o-delta/N_1e7_K_1e2/", storage_options=storage_options)

Error looks like this:

Traceback (most recent call last):
  File "/Users/jbennet/src/dask-deltatable/t7.py", line 10, in <module>
    dt = DeltaTable(uri, storage_options=storage_options)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jbennet/mambaforge/envs/dask-deltatable/lib/python3.11/site-packages/deltalake/table.py", line 238, in __init__
    self._table = RawDeltaTable(
                  ^^^^^^^^^^^^^^
OSError: Generic S3 error: response error "request error", after 0 retries: error sending request for url (http://169.254.169.254/latest/api/token): error trying to connect: tcp connect error: No route to host (os error 65)

Setting AWS_ENDPOINT_URL doesn't help.

What you expected to happen:

DeltaTable instance initialized.

How to reproduce it:

Code snippet above.

More details:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingon-holdIssues and Pull Requests that are on hold for some reason

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions