Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zeus has no attribute 'EnsembleSampler' #15

Closed
savinbeniwal opened this issue May 11, 2021 · 10 comments
Closed

zeus has no attribute 'EnsembleSampler' #15

savinbeniwal opened this issue May 11, 2021 · 10 comments

Comments

@savinbeniwal
Copy link

I am trying to reproduce manual working example. But it gives me the following error:
AttributeError: module 'zeus' has no attribute 'EnsembleSampler'

But it works with emcee though!

@minaskar
Copy link
Owner

Could you show me some code snippet?

@kamalbora94
Copy link

I am also facing the same issue while reproducing the "fitting a model to data" part given in the docs.

@minaskar
Copy link
Owner

Which version is printed when you run print(zeus.__version__)?

@kamalbora94
Copy link

2.3.0

@minaskar
Copy link
Owner

minaskar commented May 11, 2021

That's strange, did you get any errors during the installation?

Maybe it's worth repeating the installation in a new conda environment:

conda create --name zeus-env python=3
conda activate zeus-env
pip install zeus-mcmc

Could you run your code in a colab environment just to rule out that there're any typos in the code?

You can find a simple example which you can run online here https://colab.research.google.com/drive/1qvHwftc5yL8usoJ8NYbFxvNWG2OL6pkB?usp=sharing

@kamalbora94
Copy link

kamalbora94 commented May 11, 2021 via email

@kamalbora94
Copy link

I tried to run the default code of zeus " fitting a model to data".

@minaskar
Copy link
Owner

minaskar commented May 11, 2021

zeus and all of its requirements are compatible with Python 3.6.9 (I just tested it).

Did you try re-installing zeus in a new Conda environment like I mentioned in the previous comment?

@savinbeniwal
Copy link
Author

savinbeniwal commented May 13, 2021

Hi Minaskar

After re-installing zesus in Jupyter-Notebook via below code, now it working perfectly!
!conda create --name zeus-env python=3 --y
!conda activate zeus-env --y
!pip install zeus-mcmc

Thanks!

@minaskar
Copy link
Owner

I'm glad that was resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants