# Error with make\_simulator

**URL:** <https://discuss.bayesflow.org/t/error-with-make-simulator/146>\
**Category:** General\
**Created:** [April 16, 2025, 8:47am UTC](https://discuss.bayesflow.org/t/error-with-make-simulator/146 "2025-04-16T08:47:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esha](https://avatars.discourse-cdn.com/v4/letter/e/9de053/32.png) [@Esha](https://discuss.bayesflow.org/u/Esha)\
**Post date:** [April 16, 2025, 8:47am UTC](https://discuss.bayesflow.org/t/error-with-make-simulator/146/1 "2025-04-16T08:47:41Z")

</div>

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’]

---

<div class="post-metadata">

**Author:** ![valentin](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.bayesflow.org/valentin/32/103_2.png) [@valentin](https://discuss.bayesflow.org/u/valentin)\
**Post date:** [April 16, 2025, 9:03am UTC](https://discuss.bayesflow.org/t/error-with-make-simulator/146/2 "2025-04-16T09:03:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Esha](https://avatars.discourse-cdn.com/v4/letter/e/9de053/32.png) [@Esha](https://discuss.bayesflow.org/u/Esha)\
**Post date:** [April 17, 2025, 3:55am UTC](https://discuss.bayesflow.org/t/error-with-make-simulator/146/3 "2025-04-17T03:55:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![valentin](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.bayesflow.org/valentin/32/103_2.png) [@valentin](https://discuss.bayesflow.org/u/valentin)\
**Post date:** [April 17, 2025, 7:14am UTC](https://discuss.bayesflow.org/t/error-with-make-simulator/146/4 "2025-04-17T07:14:15Z")

</div>

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