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

cannot import name 'ShapedArray' from 'jax' #140

Open
VictorHavard opened this issue Jan 24, 2024 · 2 comments
Open

cannot import name 'ShapedArray' from 'jax' #140

VictorHavard opened this issue Jan 24, 2024 · 2 comments

Comments

@VictorHavard
Copy link

After installing all of the prerequisites including installing jax and testing it, when I create the venv and attempt to run the server I get "cannot import name 'ShapedArray' from 'jax'".

ShapedArray was removed in jax in version 0.4.14. Current latest version of jax is 0.4.23.

Do I need to install the older version of jax or is there some way around this?

@VictorHavard
Copy link
Author

Works when using the docker based version because it specifies to use 0.4.13.

@koiosjojo
Copy link

Changing the requirements file found under dalle-playground to the following and reinitializing with pip fixed the issue for me:
Flask==2.1.0
Flask-Cors==3.0.9
Flask-RESTful==0.3.8
Werkzeug==2.2.2
jax==0.4.13
jaxlib==0.4.13
flax
rich
tqdm
flask_cloudflared
accelerate
transformers
diffusers

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

2 participants