Skip to content

tensorstore crashing on anonymous s3 open (macos arch -x86_64, python 3.12)  #234

@fcollman

Description

@fcollman

I'm getting a crash on my mac with the latest versions of tensorstore trying to access an zarr in a public bucket.

test_tensorstore.py

# /// script
# requires-python = ">=3.10"
# dependencies = [
#   "tensorstore==0.1.74",
# ]
# ///
import tensorstore as ts

print(ts.__file__)

spec = {
    "driver": "zarr",
    "kvstore": "s3://ome-zarr-neuroglancer/1250417704.zarr/5/",
    "context": {"aws_credentials": {"type": "anonymous"}},
}
z = ts.open(spec).result()
print(z)

% uname -a
Darwin OSXLT5XFXF3 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64

Attached is a crash report generated with

 uv run --python 3.12 --with tensorstore===0.1.74 python -i test_tensorstore.py

Python-2025-04-09-132325.txt

Seems likely related to #227

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions