ing-bank / popmon

Monitor the stability of a Pandas or Spark dataframe ⚙︎
https://popmon.readthedocs.io/
MIT License
493 stars 33 forks source link

Error: cannot import name 'Report' from 'popmon.config' #240

Closed lcheng61 closed 2 years ago

lcheng61 commented 2 years ago

Code:

import popmon from popmon import resources from popmon.config import Report

Got error: ImportError Traceback (most recent call last) /tmp/ipykernel_707/1841834346.py in 3 import popmon 4 from popmon import resources ----> 5 from popmon.config import Report, Setting

ImportError: cannot import name 'Report' from 'popmon.config' (/home/user/.local/lib/python3.7/site-packages/popmon/config.py)

sbrugman commented 2 years ago

@lcheng61 What version of popmon are you running (run pip freeze | grep popmon). It should be >= 1.0.0 for this syntax to work

lcheng61 commented 2 years ago

It is popmon==0.10.2

lcheng61 commented 2 years ago

Got the same error after upgrading to popmon==1.0.0

sbrugman commented 2 years ago

@lcheng61 You seem to be using popmon in a notebook. Please make sure you update the package on the right kernel, and restart the notebook. The error should not show up anymore after these steps.

This resource is helpful: https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/#How-to-use-Pip-from-the-Jupyter-Notebook