You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
If you execute second code block, it will show you import error.
Expected behavior
If I import pytorch-lightning, it should be imported without error.
Solution
I tried to solve this problem myself and I somehow find that error is occurred, because torchtext version is lower than expected.
So If you add torchtext>=0.9 in import statement, error can be fixed.
🐛 Bug
I cannot import pytorch-lightning in colab.
The file name that has error is
text-transformer.ipynb(can be found in jupyter link, colab link)To Reproduce
Steps to reproduce the behavior:
text-transformer.ipynbin colab (colab link)Expected behavior
If I import pytorch-lightning, it should be imported without error.
Solution
I tried to solve this problem myself and I somehow find that error is occurred, because torchtext version is lower than expected.
So If you add
torchtext>=0.9in import statement, error can be fixed.If you find my solution is good, let me know I will make a PR.