Lesson3-imdb - data_lm = TextLMDataBunch.from_csv(path, 'texts.csv') error on Paperspace

Can somebody help me.

If I run :

data_lm = TextLMDataBunch.from_csv(path, ‘texts.csv’)

Iget this error:


FileNotFoundError Traceback (most recent call last)
in
1 # Language model data
----> 2 data_lm = TextLMDataBunch.from_csv(path, ‘texts.csv’)
3 # Classifier model data
4 data_clas = TextClasDataBunch.from_csv(path, ‘texts.csv’, vocab=data_lm.train_ds.vocab, bs=32)

/opt/conda/envs/fastai/lib/python3.6/site-packages/fastai/text/data.py in from_csv(cls, path, tokenizer, train, valid, test, vocab, **kwargs)
329 “Create a TextDataBunch from texts in csv files.”
330 header = ‘infer’ if ‘txt_cols’ in kwargs else None
–> 331 train_df = pd.read_csv(os.path.join(path, train+’.csv’), header=header)
332 valid_df = pd.read_csv(os.path.join(path, valid+’.csv’), header=header)
333 test_df = None if test is None else pd.read_csv(os.path.join(path, test+’.csv’), header=header)

/opt/conda/envs/fastai/lib/python3.6/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, doublequote, delim_whitespace, low_memory, memory_map, float_precision)
676 skip_blank_lines=skip_blank_lines)
677
–> 678 return _read(filepath_or_buffer, kwds)
679
680 parser_f.name = name

/opt/conda/envs/fastai/lib/python3.6/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
438
439 # Create the parser.
–> 440 parser = TextFileReader(filepath_or_buffer, **kwds)
441
442 if chunksize or iterator:

/opt/conda/envs/fastai/lib/python3.6/site-packages/pandas/io/parsers.py in init(self, f, engine, **kwds)
785 self.options[‘has_index_names’] = kwds[‘has_index_names’]
786
–> 787 self._make_engine(self.engine)
788
789 def close(self):

/opt/conda/envs/fastai/lib/python3.6/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
1012 def _make_engine(self, engine=‘c’):
1013 if engine == ‘c’:
-> 1014 self._engine = CParserWrapper(self.f, **self.options)
1015 else:
1016 if engine == ‘python’:

/opt/conda/envs/fastai/lib/python3.6/site-packages/pandas/io/parsers.py in init(self, src, **kwds)
1706 kwds[‘usecols’] = self.usecols
1707
-> 1708 self._reader = parsers.TextReader(src, **kwds)
1709
1710 passed_names = self.names is None

pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.cinit()

pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source()

FileNotFoundError: File b’/storage/imdb_sample/train.csv’ does not exist

Solved, but I can’t explain how. Probably some updates.