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

Fixes #298 #304

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Fixes #298 #304

merged 1 commit into from
Apr 17, 2024

Conversation

muhrin
Copy link
Contributor

@muhrin muhrin commented Mar 24, 2024

In jax 0.4.24 they removed KeyArray from jax.random (see https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-24-feb-6-2024), the advice is now to just use jax.Array instead.

One line fix. This closes #298.

In jax 0.4.24 they removed KeyArray from jax.random (see
https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-24-feb-6-2024),
the advice is now to just use jax.Array instead.
@MarcBerneman
Copy link
Contributor

@sschoenholz @ekindogus I recommend approving this pull request and upping the version, because currently JAX MD cannot be pip installed with the latest version of JAX.

@muhrin
Copy link
Contributor Author

muhrin commented Mar 27, 2024

Thanks @MarcBerneman , or indeed, yours in #299 . But in either case, this is certainly blocking anyone that just naively pip installs for the moment.

@SamTov
Copy link

SamTov commented Apr 11, 2024

I would add here that some older versions of chex use the random.KeyArray as well which is raised in some of the PRNG definitions. It's important to update all of that if you want this error to go away.

@ekindogus ekindogus merged commit c451353 into jax-md:main Apr 17, 2024
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 this pull request may close these issues.

AttributeError: module 'jax.random' has no attribute 'KeyArray'
4 participants