Coding-with-Adam / Dash-by-Plotly

Interactive data analytics
dash-by-plotly.coding-with-adam.vercel.app
1.47k stars 1.69k forks source link

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

Closed ravisamavedula closed 2 years ago

ravisamavedula commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.