microsoft/AutonomousDrivingCookbook

File not found error

danialvi opened this issue · 0 comments

Hi.

I have followed every step in Step 0 - Data Exploration and Preparation. But in the last [9] i get a file not found error. Error message:
"
Reading data from C:/Users/danii/Documents/AD/AirSimE2EDeepLearning/data_raw\data_raw/normal_1...

FileNotFoundError Traceback (most recent call last)
in
1 train_eval_test_split = [0.7, 0.2, 0.1]
2 full_path_raw_folders = [os.path.join(RAW_DATA_DIR, f) for f in DATA_FOLDERS]
----> 3 Cooking.cook(full_path_raw_folders, COOKED_DATA_DIR, train_eval_test_split)

~\Cooking.py in cook(folders, output_directory, train_eval_test_split)
190
191 else:
--> 192 all_data_mappings = generateDataMapAirSim(folders)
193
194 split_mappings = splitTrainValidationAndTestData(all_data_mappings, split_ratio=train_eval_test_split)

~\Cooking.py in generateDataMapAirSim(folders)
91 for folder in folders:
92 print('Reading data from {0}...'.format(folder))
---> 93 current_df = pd.read_csv(os.path.join(folder, 'airsim_rec.txt'), sep='\t')
94
95 for i in range(1, current_df.shape[0] - 1, 1):

C:\ProgramData\Anaconda3\envs\airsim2\lib\site-packages\pandas\io\parsers.py in read_csv(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
686 )
687
--> 688 return _read(filepath_or_buffer, kwds)
689
690

C:\ProgramData\Anaconda3\envs\airsim2\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds)
452
453 # Create the parser.
--> 454 parser = TextFileReader(fp_or_buf, **kwds)
455
456 if chunksize or iterator:

C:\ProgramData\Anaconda3\envs\airsim2\lib\site-packages\pandas\io\parsers.py in init(self, f, engine, **kwds)
946 self.options["has_index_names"] = kwds["has_index_names"]
947
--> 948 self._make_engine(self.engine)
949
950 def close(self):

C:\ProgramData\Anaconda3\envs\airsim2\lib\site-packages\pandas\io\parsers.py in _make_engine(self, engine)
1178 def _make_engine(self, engine="c"):
1179 if engine == "c":
-> 1180 self._engine = CParserWrapper(self.f, **self.options)
1181 else:
1182 if engine == "python":

C:\ProgramData\Anaconda3\envs\airsim2\lib\site-packages\pandas\io\parsers.py in init(self, src, **kwds)
2008 kwds["usecols"] = self.usecols
2009
-> 2010 self._reader = parsers.TextReader(src, **kwds)
2011 self.unnamed_cols = self._reader.unnamed_cols
2012

pandas_libs\parsers.pyx in pandas._libs.parsers.TextReader.cinit()

pandas_libs\parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source()

FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/danii/Documents/AD/AirSimE2EDeepLearning/data_raw\data_raw/normal_1\airsim_rec.txt'
"