This issue happens because MUSIC requires you to prepare the NEST context before the MPI context.
In other words, you should import nest before importing mpi4py if you have installed NEST
with MUSIC. Yet, the BSB leverages MPI for parallelizing the tasks of reconstructing or simulating
your network, so it imports mpi4py.
Using the BSB with NEST and MUSIC is therefore only possible through python scripts.
At the start of the python scripts that needs to import bsb, add an extra line before to import
nest even if you are not using it:
importnestfrombsbimportScaffold# rest of your code here.