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

AttributeError: module 'jax' has no attribute 'Array' #3

Closed
SongDoHou opened this issue Nov 24, 2023 · 2 comments
Closed

AttributeError: module 'jax' has no attribute 'Array' #3

SongDoHou opened this issue Nov 24, 2023 · 2 comments

Comments

@SongDoHou
Copy link

SongDoHou commented Nov 24, 2023

I've encountered with different versions of JAX. Your assistance in resolving these would be greatly appreciated.

Issue with JAX version 0.3.13:
Error: AttributeError: module 'jax' has no attribute 'Array'.
Context: "from jaxman.planner.rl_planner.agent.core import restore_agent"

Issue after upgrading to JAX version 0.4.8:
Error: TypeError: split accepts a single key, but was given a key array of shape (2,) != (). Use jax.vmap for batching.
Code Snippet: This issue occurs at key_start_goal = jax.random.split(jax.random.PRNGKey(46)) in jaxman/env/navigation/instance.py:88.

Given these issues, I would greatly appreciate if you could advise on the appropriate versions of JAX and any related packages that would be compatible with the code snippet provided.

@tadashiK
Copy link

Thank you for raising this issue.

@HikaruAsano will look into details, but would you provide more contexts in the meantime? For example, what command did you use to run which script? Also, would you provide a full error message so that we can closely check the issue?

As far as I quickly checked, we do not explicitly use "Array" in the jaxman library, which seems to be causing the error in your environment.

@SongDoHou
Copy link
Author

I found that the issues was the chex version.
It works well with '0.1.3' version. Thank you.

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