-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
While following the bluesky tutorial (can be found here), I encountered the following error:
On entering
from databroker import Broker
db = Broker.named('temp')
# Insert all metadata/data captured into db.
RE.subscribe(db.insert)
I received the following error message (the full error printout is below):
TypeError: conlist() got an unexpected keyword argument 'max_items'
I downloaded bluesky 1.11.0 from conda-forge. I am running it in a conda environment with python 3.11.4.
Here is the full printout:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[54], line 2
1 from databroker import Broker
----> 2 db = Broker.named('temp')
4 # Insert all metadata/data captured into db.
5 RE.subscribe(db.insert)
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/databroker/v1.py:213, in Broker.named(cls, name, auto_register, try_raw)
207 warnings.warn(
208 "The parameter auto_register is now ignored. "
209 "Handlers are now a concern of the service and not configurable "
210 "from the client."
211 )
212 if name == "temp":
--> 213 return temp()
214 client = from_profile(name)
215 if try_raw:
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/databroker/v1.py:41, in temp()
38 def temp():
39 from .v2 import temp
---> 41 catalog = temp()
42 return Broker(catalog)
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/databroker/v2.py:17, in temp()
10 def temp():
11 """
12 Create a temporary Catalog backed by transient storage.
13
14 This is intended for testing, teaching, an demos. The data does not
15 persistent. Do not use this for anything important.
16 """
---> 17 from .mongo_normalized import MongoAdapter
18 from tiled.client import Context, from_context
19 from tiled.server.app import build_app
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/databroker/mongo_normalized.py:65
46 from .common import BlueskyEventStreamMixin, BlueskyRunMixin, CatalogOfBlueskyRunsMixin
47 from .queries import (
48 BlueskyMapAdapter,
49 _PartialUID,
(...)
63 regex,
64 )
---> 65 from .server import router
68 CHUNK_SIZE_LIMIT = os.getenv("DATABROKER_CHUNK_SIZE_LIMIT", "100MB")
69 MAX_AD_FRAMES_PER_CHUNK = int(os.getenv("DATABROKER_MAX_AD_FRAMES_PER_CHUNK", "10"))
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/databroker/server.py:9
7 from fastapi import APIRouter, HTTPException, Request
8 import pydantic
----> 9 from tiled.server.core import PatchedStreamingResponse
10 from tiled.server.dependencies import SecureEntry
13 class NamedDocument(pydantic.BaseModel):
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/tiled/server/core.py:35
28 from ..structures.core import Spec
29 from ..utils import (
30 APACHE_ARROW_FILE_MIME_TYPE,
31 SerializationError,
32 UnsupportedShape,
33 safe_json_dump,
34 )
---> 35 from . import schemas
36 from .etag import tokenize
37 from .utils import ensure_awaitable, record_timing
File ~/miniconda3/envs/bluesky/lib/python3.11/site-packages/tiled/server/schemas.py:96
92 name: pydantic.constr(max_length=255)
93 version: Optional[pydantic.constr(max_length=255)]
---> 96 References = pydantic.conlist(ReferenceDocument, max_items=20)
97 # Wait for fix https://github.com/pydantic/pydantic/issues/3957
98 # Specs = pydantic.conlist(Spec, max_items=20, unique_items=True)
99 Specs = pydantic.conlist(Spec, max_items=20)
TypeError: conlist() got an unexpected keyword argument 'max_items'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels