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

Broken import of ecolab #456

Closed
adjerbetian opened this issue Oct 24, 2023 · 1 comment
Closed

Broken import of ecolab #456

adjerbetian opened this issue Oct 24, 2023 · 1 comment

Comments

@adjerbetian
Copy link

The import of ecolab is broken even on the demo colab with the following error:

AttributeError: 'TransformerManager' object has no attribute 'python_line_transforms'
Full error
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-3-aa5e0d6acf5e>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from etils.lazy_imports import *

2 frames
[/usr/local/lib/python3.10/dist-packages/etils/lazy_imports/__init__.py](https://localhost:8080/#) in <module>
     15 """Alias of `etils.ecolab.lazy_imports`."""
     16 
---> 17 from etils.ecolab import lazy_imports
     18 from etils.ecolab.lazy_imports import *
     19 

[/usr/local/lib/python3.10/dist-packages/etils/ecolab/__init__.py](https://localhost:8080/#) in <module>
     33 
     34 # Activate auto-display by default
---> 35 auto_display()

[/usr/local/lib/python3.10/dist-packages/etils/ecolab/auto_display_utils.py](https://localhost:8080/#) in auto_display(activate)
     61   _clear_transform(shell.ast_transformers)
     62   if _IS_LEGACY_API:
---> 63     _clear_transform(shell.input_transformer_manager.python_line_transforms)
     64     _clear_transform(shell.input_splitter.python_line_transforms)
     65   else:

AttributeError: 'TransformerManager' object has no attribute 'python_line_transforms'
Screen capture

image

@Conchylicultor
Copy link
Member

Conchylicultor commented Oct 24, 2023

Thank you for reporting. This is because Colab kernel was recently updated from IPython 3.2.3 to 7. Will send a fix

copybara-service bot pushed a commit that referenced this issue Oct 24, 2023
copybara-service bot pushed a commit that referenced this issue Oct 24, 2023
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 a pull request may close this issue.

2 participants