bluesky / databroker

Unified API pulling data from multiple sources
https://blueskyproject.io/databroker
BSD 3-Clause "New" or "Revised" License
33 stars 45 forks source link

import databroker.tutorial_utils fails to locate 'databroker.core' package #777

Open LeeYangLBLBCS opened 1 year ago

LeeYangLBLBCS commented 1 year ago

<!--- Provide a general summary of the issue in the Title above -->

## Expected Behavior
no error when importing databroker.turorial_utils

## Current Behavior
ipython3
/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:949: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
  warn(
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import databroker.tutorial_utils
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-932d1bea0e8b> in <module>
----> 1 import databroker.tutorial_utils

~/databroker/databroker/tutorial_utils.py in <module>
      8 import appdirs
      9 import databroker
---> 10 from databroker_pack import unpack_inplace
     11 import requests
     12 from tqdm.auto import tqdm  # automatically chooses tqdm.tqdm or tqdm.notebook

~/try-databroker/lib/python3.10/site-packages/databroker_pack/__init__.py in <module>
      4 del get_versions
      5 
----> 6 from ._pack import *  # noqa
      7 from ._unpack import *  # noqa

~/try-databroker/lib/python3.10/site-packages/databroker_pack/_pack.py in <module>
      8 
      9 import event_model
---> 10 import databroker.core
     11 from tqdm import tqdm
     12 import yaml

ModuleNotFoundError: No module named 'databroker.core'

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->

## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
kadykov commented 1 year ago

This issue is already mentioned in #35 and reported in databroker-pack.