Error with make_simulator

I am very new to BayesFlow and I am running the Simple Model Comparison - One Sample T-Test to get an idea. However when running the code related to this topic I get an error as
AttributeError: module ‘bayesflow’ has no attribute ‘make_simulator’. However bayesflow directory has only the following functions. I installed the bayesflow using git. I kindly seek your help regarding this.

[‘builtins’,
cached’,
doc’,
file’,
loader’,
name’,
package’,
path’,
spec’,
warningregistry’,
‘computational_utilities’,
‘default_settings’,
‘diagnostics’,
‘exceptions’,
‘helper_functions’,
‘logger’,
‘logging’,
‘simulation’]

Hi Esha,
welcome to the forum and thanks for reaching out. To me this looks as if something has gone wrong during the installation, it might be that a previous version of BayesFlow installed from pip did not get uninstalled properly and now interferes with the newly installed one.
Could you please try the installation once more in a fresh virtual environment (using for example venv or `conda) and tell us if the problem persists? If it does, it would be great if you sent us the commands you used to create the environment and to install BayesFlow, so we can try to reproduce and fix it.
If you need support in setting up the virtual environments feel free to reach out.

1 Like

I installed it again and now it works. Thank you very much

Great! If you encounter any other issues, please do not hesitate to reach out :slight_smile: