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

fix: Replace dbc.FormGroup with dbc.Row #51

Closed mutumagitonga closed 2 months ago

mutumagitonga commented 2 months ago

Deals with the following error that prevents app from running: raise AttributeError(AttributeError: FormGroup was deprecated in dash-bootstrap-components version 1.0.0 You are using 1.6.0.

Trying to run the app with the original code with python3 bootstrap_modal.py results in the error above.

Below is full error traceback on that pops up:

Traceback (most recent call last):
  File "/home/mutuma/code/Plotly_Dash_Practice/3_charming_data_bootstrap_alerts_n_modals/app.py", line 19, in <module>
    dbc.FormGroup(
  File "/home/mutuma/code/Plotly_Dash_Practice/2_charming_data_bootstrap_cards/venv/lib/python3.10/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.6.0. For more details please see the migration guide: https://github.com/facultyai/dash-bootstrap-components/blob/6da4a97f940483deb3dc9c815ef4c7e450ff0be7/docs/content/migration-guide.md. Did you mean: 'CardGroup'?
Coding-with-Adam commented 2 months ago

Thank you for all these PR and updates, @mutumagitonga Makes my code look better and actually work. I'd love to thank you and get you better if possible. Feel free to write me at adam@charming-data.com

mutumagitonga commented 2 months ago

Hello @Coding-with-Adam , I am glad that the pull requests have improved your code base. I would love to connect with you and discuss ways I can make a greater impact in your organization. In this regard, I will reach out to you via email.

Thank you.