Skip to content

Newer torchtext (>= nightly 2021-02-19) breaks PyTorch Lightning #6165

@thiagocrepaldi

Description

@thiagocrepaldi

🐛 Bug

import pytorch_lightning as pl
  File "/../python3.7/site-packages/pytorch_lightning/utilities/apply_func.py", line 28, in <module>
    from torchtext.data import Batch
ImportError: cannot import name 'Batch' from 'torchtext.data' (/.../python3.7/site-packages/torchtext/data/__init__.py)

To Reproduce

Install nightly torchtext after 02/19/2021 and install pytorch Lightning and try to import lightning on python interpreter

Expected behavior

Latest pytorch lightning should be compatible with nightly torchtext or at lest a nightly ightning should be made available with such fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedOpen to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions