chaosparrot / parrot.py

Computer interaction using audio and speechrecognition
MIT License
139 stars 36 forks source link

Crash during analysing #25

Open chaosparrot opened 1 year ago

chaosparrot commented 1 year ago

Two users have found crashes while following the default analyse flow, ( The A and R menu ) namely:

Analyzing model_training_two_sounds_model.pkl1665002081.csv Traceback (most recent call last): File "settings.py", line 45, in <module> root_navigation( True ) File "settings.py", line 23, in root_navigation select_mode() File "settings.py", line 32, in select_mode root_navigation( False ) File "settings.py", line 23, in root_navigation select_mode() File "settings.py", line 37, in select_mode test_data( True ) File "/Users/dino/Documents/parrot.py-master/lib/test_data.py", line 55, in test_data analyze_replay_or_audio( available_models, available_replays, available_sounds ) File "/Users/dino/Documents/parrot.py-master/lib/test_data.py", line 355, in analyze_replay_or_audio replay( available_replays ) File "/Users/dino/Documents/parrot.py-master/lib/test_data.py", line 90, in replay plot_replay( pd.read_csv( REPLAYS_FOLDER + "/" + replay_file, skiprows=0, header=0) ) File "/Users/dino/Documents/parrot.py-master/lib/test_data.py", line 422, in plot_replay for column in replay_data.drop(['winner', 'intensity', 'time', 'frequency', 'actions', 'buffer', 'power'], axis=1): File "/opt/homebrew/lib/python3.8/site-packages/pandas/util/_decorators.py", line 317, in wrapper return func(*args, **kwargs) File "/opt/homebrew/lib/python3.8/site-packages/pandas/core/frame.py", line 5391, in drop return super().drop( File "/opt/homebrew/lib/python3.8/site-packages/pandas/util/_decorators.py", line 317, in wrapper return func(*args, **kwargs) File "/opt/homebrew/lib/python3.8/site-packages/pandas/core/generic.py", line 4510, in drop obj = obj._drop_axis(labels, axis, level=level, errors=errors) File "/opt/homebrew/lib/python3.8/site-packages/pandas/core/generic.py", line 4551, in _drop_axis new_axis = axis.drop(labels, errors=errors) File "/opt/homebrew/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 6972, in drop raise KeyError(f"{list(labels[mask])} not found in axis") KeyError: "['winner', 'intensity', 'time', 'frequency', 'actions', 'buffer', 'power'] not found in axis"

rthor commented 1 year ago

I'm also getting this error.