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

AttributeError: FormGroup was deprecated #32

Closed schwabts closed 1 year ago

schwabts commented 1 year ago

What should I do about this?

Dash-by-Plotly-Coding-with-Adam/Bootstrap/bootstrap_modal.py:4: UserWarning: The dash_core_components package is deprecated. Please replace import dash_core_components as dcc with from dash import dcc import dash_core_components as dcc Traceback (most recent call last): File "Dash-by-Plotly-Coding-with-Adam/Bootstrap/bootstrap_modal.py", line 22, in dbc.FormGroup( File "Dash-by-Plotly-Coding-with-Adam\Bootstrap.venv\lib\site-packages\dash_bootstrap_components__init.py", line 51, in getattr__ raise AttributeError( AttributeError: FormGroup was deprecated in dash-bootstrap-components version 1.0.0. You are using 1.2.1.

schwabts commented 1 year ago

As pointed out in the Migration guide for dash-bootstrap-components v1 it was sufficient to run

pip install "dash-bootstrap-components<1"

in the virtual environment used for the respective project.

The old appearantly same problem FormGroup was deprecated in dash-bootstrap-components version 1.0.0 on STACK OVERFLOW could not be solved in the same easy way.

Coding-with-Adam commented 1 year ago

Thanks for the heads up @schwabts. Did you solve the dcc issue? you need to do from dash import dcc./

I wish I had the time up update all these older files.