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

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

Closed
lcheng61 opened this issue Jul 12, 2022 · 4 comments
Closed

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

lcheng61 opened this issue Jul 12, 2022 · 4 comments

Comments

@lcheng61
Copy link

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

@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
Copy link
Author

It is popmon==0.10.2

@lcheng61
Copy link
Author

Got the same error after upgrading to popmon==1.0.0

@sbrugman
Copy link
Collaborator

@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

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