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

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

Open
LeeYangLBLBCS opened this issue Jul 24, 2023 · 1 comment

Comments

@LeeYangLBLBCS
Copy link

<!--- 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
Copy link

kadykov commented Sep 4, 2023

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

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

No branches or pull requests

2 participants