Skip to content

Conversation

@danielballan
Copy link
Member

Description

tiled.adapters.utils has a sqlalchemy dep now, so the utility IndexerMixin was moved to tiled.utils in bluesky/tiled#1206.

Motivation and Context

Import error:

File ~/.cache/uv/archive-v0/46g7znwG2xHN6YQAVBduX/lib/python3.9/site-packages/bluesky_tiled_plugins/__init__.py:3
      1 from .bluesky_event_stream import BlueskyEventStream  # noqa: F401
      2 from .bluesky_run import BlueskyRun  # noqa: F401
----> 3 from .catalog_of_bluesky_runs import CatalogOfBlueskyRuns  # noqa: F401
      4 from .tiled_writer import TiledWriter  # noqa: F401
      6 __all__ = [
      7     "BlueskyEventStream",
      8     "BlueskyRun",
      9     "CatalogOfBlueskyRuns",
     10     "TiledWriter",
     11 ]

File ~/.cache/uv/archive-v0/46g7znwG2xHN6YQAVBduX/lib/python3.9/site-packages/bluesky_tiled_plugins/catalog_of_bluesky_runs.py:7
      4 import numbers
      5 import operator
----> 7 from tiled.adapters.utils import IndexCallable
      8 from tiled.client.container import Container
      9 from tiled.client.utils import handle_error

File ~/Repos/bnl/tiled/tiled/adapters/utils.py:4
      1 from collections import defaultdict
      2 from typing import Any, Optional
----> 4 from tiled.adapters.core import A, S
      6 from ..structures.data_source import DataSource
      8 # for back-compat

File ~/Repos/bnl/tiled/tiled/adapters/core.py:5
      2 from collections.abc import Set
      3 from typing import Any, Generic, List, Optional, TypeVar
----> 5 from tiled.storage import Storage
      6 from tiled.structures.core import Spec, StructureFamily
      7 from tiled.structures.root import Structure

File ~/Repos/bnl/tiled/tiled/storage.py:9
      6 from typing import TYPE_CHECKING, Dict, Literal, Optional, Union
      7 from urllib.parse import urlparse, urlunparse
----> 9 import sqlalchemy.pool
     11 from .utils import ensure_uri, path_from_uri, sanitize_uri
     13 if TYPE_CHECKING:

ModuleNotFoundError: No module named 'sqlalchemy'

How Has This Been Tested?

We don't have the harness set up to test a client-only install on CI, but this resolves the issue in a local test.

@tacaswell
Copy link
Contributor

E ImportError: cannot import name 'tree_repr' from 'tiled.utils' (/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/tiled/utils.py)

That looks real and caused by this change.

@genematx genematx merged commit 197b720 into bluesky:main Oct 30, 2025
10 checks passed
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.

3 participants