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

JAX issue #2216

Closed
anhdnguy opened this issue Jul 28, 2023 · 3 comments
Closed

JAX issue #2216

anhdnguy opened this issue Jul 28, 2023 · 3 comments
Labels

Comments

@anhdnguy
Copy link

I was able to install scvi-tools via conda just fine, but when I import the module, it returns this error

cannot import name 'ShapedArray' from 'jax'

Versions:

scvi-tools = 1.0.2
jax = 0.4.14

@anhdnguy anhdnguy added the bug label Jul 28, 2023
@martinkim0
Copy link
Contributor

Hi, this issue is originating from flax since it looks like the package is not being updated correctly on conda (latest on conda is 0.6.1 but latest on pypi is 0.7.0). For now, this can be fixed by installing via pip:

pip install -U scvi-tools

and we'll find a fix for the conda installation in our next patch (1.0.3). Hope this helps!

@anhdnguy
Copy link
Author

@martinkim0 Thanks. I installed the old version and it worked. I will look out for the new release

@maarten-devries
Copy link

I also needed pip install -U flax

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

No branches or pull requests

3 participants