I have app I developed on my windows laptop. After I finished, I moved it to macbookpro where I faced all problems in dependences. I solved it all except dash_bootstrap_components. even thou I install last version 0.13.1 but it gave me this error : AttributeError: module ‘dash_bootstrap_components’ has no attribute ‘ModalTitle’
I believe it’s because v1 of dash-bootstrap-components was released a few months ago, and prior to this, the ModalTitle element didn’t exist. You can find the migration guide here: Migration guide - dbc docs
The latest version is v1.1.0.
You can find examples on how to use the ModalTitle component in the docs if you haven’t used it already: Modal - dbc docs
It sounds like v1 might have been installed without you realising on the windows machine, but that if you had v0.13.1 fixed in your requirements file, when you moved over to mac, it installed the older version. Try installing the latest version on the Mac and checking it works. ModalTitle will never work in v0.13.1 because we only added it when v1 was released.
To install the last v0 release of dash-bootstrap-components from PyPI use pip install "dash-bootstrap-components<1"
This is to allow people who don’t want to migrate to v1 to still use the older version so they don’t have to migrate to Bootstrap 5 or Dash 2. This is what installs v0.13.1.
However, as you want to use the ModalTitle component, you need to install a version which is at least v1. So you need to use the standard install line as documented in the Quickstart documentation. Specifically:
You can install dash-bootstrap-components with pip:
pip install dash-bootstrap-components
You can use the standard pip notation to denote specific versions too. You can find all versions (including prereleases) on PyPI
It will very much depend on your set up and whether you are using something like anaconda etc. you can find out where pip is installed on a Mac using which pip which might help you to work out what to search for online.