forked from hydroframe/cssi_evaluation
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When initially loading packages (first cell) in the notebook 02_single_site_comparison.ipynb, I recieved the following error about circular import:
ImportError
Traceback (most recent call last) Cell In[2], line 12
10 # Import the Evaluation library from the project root.
11 sys.path.append(str((Path.cwd().absolute() / "../../../src").resolve()))
---> 12 from cssi_evaluation.snow import utils
14 # import notebook-specific utilities
15 from utils import nwm_utils File ~/Documents/cuahsi_projects/cssi_evaluation/src/cssi_evaluation/snow/__init__.py:3
1 """Initialization module for the cssi_evaluation.snow package."""
----> 3 from . import evaluation_metrics, utils, plots
5 __all__ = [
6 "evaluation_metrics",
7 "utils",
8 "plots",
9 ]
ImportError: cannot import name 'evaluation_metrics' from partially initialized module 'cssi_evaluation.snow'
(most likely due to a circular import) (/cssi_evaluation/src/cssi_evaluation/snow/__init__.py)
I commented out everything except the first line in /cssi_evaluation/src/cssi_evaluation/snow/__init__.py and the packages loaded correctly and the notebook ran successfully.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working