ModuleNotFoundError: bar_chart_race as bcr

I have added the bar_chart_race == 0.1.0 to the requirement text file and encountered ModuleNotFound Error.

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud). I don’t have the app link to share.
  2. Share the link to your app’s public GitHub repository (including a [requirements file]
    (App dependencies - Streamlit Docs)).
    streamlit == 1.37.1
    pandas ==2.2.2
    altair == 5.4.0
    numpy == 1.0.1
    pathlib ==1.0.1
    matplotlib == 3.9.2
    matplotlib-inline == 0.1.7
    bar_chart_race == 0.1.0
    yfinance == 0.2.22
    beautifulsoup4 ==4.12.3
    frozendict==2.4.4
    html5lib==1.1
    lxml==5.3.0
    multitasking==0.0.11
    peewee==3.17.6
    platformdirs==4.2.2
    pytz==2024.1
    requests==2.32.3
  3. Share the full text of the error message (not a screenshot).

ModuleNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
    result = func()File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
    exec(code, module.__dict__)File "/mount/src/dashboard/streamlit_app.py", line 17, in <module>
    import bar_chart_race as bcr
  1. Share the Streamlit and Python versions.
    Python version 3.10