---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[3], 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 c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\databroker\\v1.py:256, in Broker.named(cls, name, auto_register)
225 \"\"\"
226 Create a new Broker instance using a configuration file with this name.
227
(...)
253 db : Broker
254 \"\"\"
255 if name == 'temp':
--> 256 return temp()
257 else:
258 try:
File c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\databroker\\v1.py:39, in temp()
38 def temp():
---> 39 from .v2 import temp
40 catalog = temp()
41 return Broker(catalog)
File c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\databroker\\v2.py:5
2 import importlib
3 import tempfile
----> 5 from .core import parse_handler_registry, discover_handlers, parse_transforms
6 from intake.catalog import Catalog
7 from event_model import DuplicateHandler
File c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\databroker\\core.py:17
15 import intake.catalog.base
16 import intake.catalog.local
---> 17 import intake.container.base
18 from intake.compat import unpack_kwargs
19 import msgpack
File c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\intake\\container\\__init__.py:8
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors
3 # All rights reserved.
4 #
5 # The full license is in the LICENSE file, distributed with this software.
6 #-----------------------------------------------------------------------------
----> 8 from .dataframe import RemoteDataFrame
9 from .ndarray import RemoteArray
10 from .semistructured import RemoteSequenceSource
File c:\\Users\\User\\repo\\.venv\\Lib\\site-packages\\intake\\container\\dataframe.py:7
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors
3 # All rights reserved.
4 #
5 # The full license is in the LICENSE file, distributed with this software.
6 #-----------------------------------------------------------------------------
----> 7 from distutils.version import LooseVersion
10 from intake.source.base import Schema, DataSource
11 from .base import RemoteSource, get_partition
ModuleNotFoundError: No module named 'distutils'
Expected Behavior
The bluesky tutorial should be completeable on an up-to-date install of Python 3.12.
Current Behavior
Loading the
databrokermodule raises aModuleNotFoundErrordue to an import of thedistutilsin an upstream dependencyintake.Full Traceback
Possible Solution
intake >= 0.6.7databrokerv2.Steps to Reproduce (for bugs)
Context
databrokerv1.2.5 requiresintake >= 0.5.5, <= 0.6.4though this appears to have been removed in the v2 betas (sorry not familiar with the current build system so wasn't able to check). Dependency ondistutilsis removed inintake >= 0.6.7(before, after). I haven't tested a build of the v1 branch with an updated dependency.Your Environment
Python 3.12 virtual environment on Windows 11 with
blueskyand other packages installed viapip.pip freeze