Open prjemian opened 2 years ago
Look at this after April 2023
The imports of the internal _drivers
package are the problem. Fortunately, they are not used anywhere later in the module. I think these two lines can be removed:
import databroker._drivers.mongo_normalized
import databroker._drivers.msgpack
Testing with newer code versions all around, same error but source point moved:
Successfully installed apstools-1.6.15 pyresttable-2020.0.8
Note: you may need to restart the kernel to use updated packages.
In [9]: from apstools.utils import listruns
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[9], line 1
----> 1 from apstools.utils import listruns
File ~/.conda/envs/databroker/lib/python3.9/site-packages/apstools/utils/__init__.py:1
----> 1 from ._core import TableStyle
2 from .catalog import copy_filtered_catalog
3 from .catalog import findCatalogsInNamespace
File ~/.conda/envs/databroker/lib/python3.9/site-packages/apstools/utils/_core.py:3
1 from enum import Enum
----> 3 import databroker._drivers.mongo_normalized
4 import databroker._drivers.msgpack
5 import intake
ModuleNotFoundError: No module named 'databroker._drivers'
While testing databroker 2.0.0a22 today, the import failed due to older databroker internals. (attn @danielballan)