Lesson 3 imdb on kaggle kernel

![chrpic|690x387](upload://7TUuFKNe8rMrDh4gIC5N6MDZb0M.png) 

while trying to run:
data = TextDataBunch.load(path)
after this:
data_lm = TextDataBunch.from_csv(path, 'texts.csv', num_workers=0)

i got an a error:


FileNotFoundError Traceback (most recent call last)
in ()
----> 1 data = TextDataBunch.load(path)

/opt/conda/lib/python3.6/site-packages/fastai/text/data.py in load(cls, path, cache_name, processor, **kwargs)
167 Use load_data for data saved with v1.0.44 or later.""", DeprecationWarning)
168 cache_path = Path(path)/cache_name
–> 169 vocab = Vocab(pickle.load(open(cache_path/‘itos.pkl’,‘rb’)))
170 train_ids,train_lbls = np.load(cache_path/f’train_ids.npy’), np.load(cache_path/f’train_lbl.npy’)
171 valid_ids,valid_lbls = np.load(cache_path/f’valid_ids.npy’), np.load(cache_path/f’valid_lbl.npy’)

FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/.fastai/data/imdb_sample/tmp/itos.pkl’

1 Like

Hi steveoni,

I seem to have the same problem as you. As far as I can see, when I run the command:
data_lm = TextDataBunch.from_csv(path, ‘texts.csv’, num_workers=0)
it doesn’t seem to do anything. It certainly doesn’t create the itos.pkl file in the location: /tmp/.fastai/data/imdb_sample/tmp/itos.pkl’.

Please let me know if you managed to fix this issue, as I am also stuck on it!

Many thanks for your help,
Ross

Hi Ross
I was not able to solve it, so i switch to google colab and it is working perfectly