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

AttributeError: FormGroup was deprecated #32

Closed
schwabts opened this issue Feb 13, 2023 · 2 comments
Closed

AttributeError: FormGroup was deprecated #32

schwabts opened this issue Feb 13, 2023 · 2 comments

Comments

@schwabts
Copy link

schwabts commented Feb 13, 2023

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

schwabts commented Feb 14, 2023

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

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.

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