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

Not able to import trax in google colab though trax is installed #1752

Open
ankusri opened this issue Jun 29, 2022 · 1 comment
Open

Not able to import trax in google colab though trax is installed #1752

ankusri opened this issue Jun 29, 2022 · 1 comment

Comments

@ankusri
Copy link

ankusri commented Jun 29, 2022

Description

I am trying trax-ml library in Google Colab.
I installed trax using below command
!pip install trax==1.3.1

But I am not able to import trax library.

Please help me in this issue.

Environment information

Google Colab

OS: <your answer here>

$ pip freeze | grep trax
# your output here

$ pip freeze | grep tensor
# your output here

$ pip freeze | grep jax
# your output here

$ python -V
# your output here

For bugs: reproduction and error logs

# Steps to reproduce:
...!pip install trax==1.3.1
import trax
# Error logs:
...
```---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-3-3afdcd9c7c68>](https://localhost:8080/#) in <module>()
----> 1 import trax

2 frames
[/usr/local/lib/python3.7/dist-packages/trax/layers/__init__.py](https://localhost:8080/#) in layer_configure(*args, **kwargs)
     41 def layer_configure(*args, **kwargs):
     42   kwargs['module'] = 'trax.layers'
---> 43   return gin.external_configurable(*args, **kwargs)
     44 
     45 # pylint: disable=used-before-assignment

TypeError: external_configurable() got an unexpected keyword argument 'blacklist'
@ngctnnnn
Copy link

You could try with

!pip install -q -U git+https://github.com/google/trax@master

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