Skip to content

training.ipynb colab: ModuleNotFoundError: No module named 'brax' #599

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

Closed
samuela opened this issue Apr 20, 2025 · 1 comment
Closed

training.ipynb colab: ModuleNotFoundError: No module named 'brax' #599

samuela opened this issue Apr 20, 2025 · 1 comment
Assignees

Comments

@samuela
Copy link

samuela commented Apr 20, 2025

I'm seeing the following error running https://colab.research.google.com/github/google/brax/blob/main/notebooks/training.ipynb in Colab without modification:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-2-6058247c80ff>](https://localhost:8080/#) in <cell line: 0>()
     14 try:
---> 15   import brax
     16 except ImportError:

ModuleNotFoundError: No module named 'brax'

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-2-6058247c80ff>](https://localhost:8080/#) in <cell line: 0>()
     17   get_ipython().system('pip install git+https://github.com/google/brax.git@main')
     18   clear_output()
---> 19   import brax
     20 
     21 import flax

ModuleNotFoundError: No module named 'brax'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
@btaba
Copy link
Collaborator

btaba commented Apr 20, 2025

Looks like ImportError should be switched to ModuleNotFoundError, thanks for the bug report!

@btaba btaba self-assigned this Apr 20, 2025
@btaba btaba closed this as completed Apr 22, 2025
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