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

Add bluesky-tiled-plugins as a server dependency #834

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

padraic-shafer
Copy link
Contributor

Description

This PR adds bluesky-tiled-plugins as a "server" dependency.

Motivation and Context

The sub package bluesky-tiled-plugins is used by the databroker server that gets built as a docker image. Starting up the container fails with the message:

│ /opt/venv/lib/python3.12/site-packages/databroker/query_impl.py:16 in        │
│ <module>                                                                     │
│                                                                              │
│    13 │   QueryValueError,                                                   │
│    14 │   Regex,                                                             │
│    15 )                                                                      │
│ ❱  16 from bluesky_tiled_plugins.queries import (                            │
│    17 │   _PartialUID,                                                       │
│    18 │   _ScanID,                                                           │
│    19 │   ScanIDRange,                                                       │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ collections = <module 'collections' from                                 │ │
│ │               '/usr/local/lib/python3.12/collections/__init__.py'>       │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'bluesky_tiled_plugins'

How Has This Been Tested?

Tested locally by updating the docker-compose.yml to build and run an image from the local repo.

...
services:
  tiled:
    image: ghcr.io/bluesky/databroker:local
    build:
      context: "."  # Local repo directory
      tags:
        - databroker:local
...
TILED_SINGLE_USER_API_KEY=test docker compose up -d

Using configuration from /deploy/config
[-] INFO:     Started server process [1]
[-] INFO:     Waiting for application startup.
Tiled version 0.1.0b16
[-] INFO:     Application startup complete.
[-] INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

@danielballan danielballan merged commit f2f8145 into bluesky:main Jan 29, 2025
8 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.

2 participants