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

Fails to install on google colab #6415

Closed
simonm3 opened this issue Mar 8, 2021 · 8 comments
Closed

Fails to install on google colab #6415

simonm3 opened this issue Mar 8, 2021 · 8 comments
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on

Comments

@simonm3
Copy link

simonm3 commented Mar 8, 2021

Fails to install on colab.

!pip install pytorch-lightning
import pytorch_lightning  as pl

ImportError: cannot import name 'Batch' from 'torchtext.data' (/usr/local/lib/python3.7/dist-packages/torchtext/data/init.py)

@simonm3 simonm3 added bug Something isn't working help wanted Open to be worked on labels Mar 8, 2021
@simonm3
Copy link
Author

simonm3 commented Mar 8, 2021

I think they just updated the python version to 3.7 because it worked previously

@simonm3
Copy link
Author

simonm3 commented Mar 8, 2021

works fine if I uninstall torchtext

@awaelchli
Copy link
Contributor

can you install from master and check again please?
!pip install git+https://github.com/PyTorchLightning/pytorch-lightning
PR: #6365

@awaelchli awaelchli added the 3rd party Related to a 3rd-party label Mar 8, 2021
@ricglz
Copy link

ricglz commented Mar 8, 2021

It seems like from master works fine

@simonm3
Copy link
Author

simonm3 commented Mar 8, 2021 via email

@awaelchli
Copy link
Contributor

previous version of what?
It's torchtext who removed the legacy Batch class, so you need to downgrade that too

@ranch-hands
Copy link

can you install from master and check again please? !pip install git+https://github.com/PyTorchLightning/pytorch-lightning PR: #6365

HI, Didnt work on colab

@simonm3
Copy link
Author

simonm3 commented Nov 14, 2023

That works thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on
Projects
None yet
Development

No branches or pull requests

4 participants