Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

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

Description

@ankusri

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'

Activity

  1. ngctnnnn commented on Dec 12, 2022

    @ngctnnnn

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions