Lesson 4 imdb Error - ModuleNotFoundError: No module named 'fastai.learner'

I’m trying to work through lesson4-imdb.ipynb on google colab and getting the following error when I try to execute the first “import” code block.

ModuleNotFoundError Traceback (most recent call last)
in ()
3 get_ipython().magic(‘matplotlib inline’)
4
----> 5 from fastai.learner import *
6
7 import torchtext

ModuleNotFoundError: No module named ‘fastai.learner’

I did execute:
!curl https://course.fast.ai/setup/colab | bash
to set up the environment first.

I also tried !pip install fastai==0.7.0 (based on a suggestion in another thread)
and then restarted the runtime and tried again, but still the same error.

I guess you might want to use text.learner
try this:
from fastai.text import *

Thanks, that helped me past that particular error. Now I’m getting the error below.
Any substitutes you might know of for this?


ModuleNotFoundError Traceback (most recent call last)
in ()
9 from torchtext.datasets import language_modeling
10
—> 11 from fastai.rnn_reg import *
12 from fastai.rnn_train import *
13 from fastai.nlp import *

ModuleNotFoundError: No module named ‘fastai.rnn_reg’