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

ImportError: cannot import name 'app' from partially initialized module 'app' (most likely due to a circular import) #21

Closed
ravisamavedula opened this issue Jan 28, 2022 · 2 comments

Comments

@ravisamavedula
Copy link

Hi @Coding-with-Adam ,

Inside pages/histogram.py if i use "from app import app".I am getting the below error.
ImportError: cannot import name 'app' from partially initialized module 'app' (most likely due to a circular import)

How can get an instance of app of inside pages/ any component?

@Coding-with-Adam
Copy link
Owner

Hi @ravisamavedula
I don't see the code line ""from app import app"" in the historgram.py file here:
https://github.com/Coding-with-Adam/Dash-by-Plotly/tree/master/Dash_More_Advanced_Shit/Multipage_app/pages

Are you referring to a different file?

@ravisamavedula
Copy link
Author

Hi @Coding-with-Adam ,

I mean if I add that line historgram.py. I needed to use dash-uploader which needs app instance.
at that time i see this failure.

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