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

ModuleNotFoundError: No module named 'blackjax.optimizers' #223

Closed
xaviergonzalez opened this issue Jun 15, 2022 · 6 comments · Fixed by #224
Closed

ModuleNotFoundError: No module named 'blackjax.optimizers' #223

xaviergonzalez opened this issue Jun 15, 2022 · 6 comments · Fixed by #224

Comments

@xaviergonzalez
Copy link

Bug Description

I am trying to use blackjax in colab. Yesterday, it was working fine. Now, when I try to import blackjax, I get the following error: ModuleNotFoundError: No module named 'blackjax.optimizers'

Steps/Code to Reproduce

! pip install blackjax
import blackjax

Expected Results

No error messages, and blackjax loads.

Actual Results

ModuleNotFoundError: No module named 'blackjax.optimizers'

Versions

Python 3.7.13 (default, Apr 24 2022, 01:04:09)
[GCC 7.5.0]
Jax 0.3.8
Jaxlib 0.3.7

@karm-patel
Copy link
Contributor

Same error!

Versions:
Python 3.7.13
blackjax 0.8.1
jax 0.3.13
jaxlib 0.3.10

@rlouf
Copy link
Member

rlouf commented Jun 15, 2022

Can you try with blackjax 0.8.0 ? @junpenglao

@xaviergonzalez
Copy link
Author

Can you try with blackjax 0.8.0 ? @junpenglao

I'm getting the same error with the following code

! pip install blackjax==0.8.0
import blackjax

@rlouf
Copy link
Member

rlouf commented Jun 16, 2022

This should be solved in 0.8.2 !

@murphyk
Copy link
Contributor

murphyk commented Jun 20, 2022

It does work if you first install jaxopt, like this:
Screen Shot 2022-06-20 at 8 48 31 AM

But if you install blackjax before jaxopt it will fail

Screen Shot 2022-06-20 at 8 46 05 AM

@rlouf
Copy link
Member

rlouf commented Jun 20, 2022

This is really strange, I'll try to reproduce it locally. I'll also include jax and jaxopt in the dependencies in the next release.

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

Successfully merging a pull request may close this issue.

4 participants