django-plotly-dash icon indicating copy to clipboard operation
django-plotly-dash copied to clipboard

dash_bootstrap_components emits a deprecation warning

Open frnhr opened this issue 3 years ago • 1 comments

I'm getting this warning when the server starts:

.../site-packages/dash_bootstrap_components/_table.py:5: UserWarning: 
The dash_html_components package is deprecated. Please replace
`import dash_html_components as html` with `from dash import html`
  import dash_html_components as html

This happens since Dash 2.0.

Manually updating dash_bootstrap_components to the latest version (1.2.1) removes the warning and seems to have no other effects (but I could easily be missing something).

What is the reason for explicitly capping the version to "<1" in setup.py?

Actually, I cannot find any usages of dash_bootstrap_components in the source, so I'm tempted to start yelling to TEAR THIS DEPENDENCY OUT WHAT'S IT DOING HERE AAAAAA!!!!11... but then... I suspect I am probably missing a more subtle reason for this dependency, aren't I? >:]

frnhr avatar Aug 02 '22 20:08 frnhr

@fmhr I suspect that this is historical baggage. What happens if you forcibly upgrade the version of django-bootstrap-components? This is not a long-term fix but it would be interesting to see what happens.

GibbsConsulting avatar Sep 07 '22 12:09 GibbsConsulting

Now addressed in v2.1.0

GibbsConsulting avatar Oct 29 '22 05:10 GibbsConsulting

@frnhr

fmhr avatar Nov 14 '22 12:11 fmhr