Traceback (most recent call last):


 "/home/ec2-user/yonatab/ZeroShot/transformers_experiments/src/examples_git/huggingface_tf_example_squad.py", line 18, in <module>

dataset_features = squad_convert_examples_to_features(examples=examples, tokenizer=tokenizer, max_seq_length=384, doc_stride=128, max_query_length=64, is_training=True, return_dataset='tf')


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/transformers/data/processors/squad.py", line 327, in squad_convert_examples_to_features

disable=not tqdm_enabled,


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tqdm/std.py", line 1129, in __iter__

for obj in iterable:


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/multiprocessing/pool.py", line 320, in <genexpr>

return (item for chunk in result for item in chunk)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/multiprocessing/pool.py", line 735, in next

raise value
AttributeError: 'NoneType' object has no attribute 'strip'

Traceback (most recent call last):


 "/Users/heguanwang/Documents/code/spark-keras/lstm_horovod.py", line 90, in <module>

keras_model = keras_estimator.fit(sdf)


 "/Users/heguanwang/Library/Python/3.7/lib/python/site-packages/horovod/spark/common/estimator.py", line 37, in fit

return super(HorovodEstimator, self).fit(df, params)


 "/usr/local/lib/python3.7/site-packages/pyspark/ml/base.py", line 132, in fit

return self._fit(dataset)


 "/Users/heguanwang/Library/Python/3.7/lib/python/site-packages/horovod/spark/common/estimator.py", line 78, in _fit

verbose=self.getVerbose()) as dataset_idx:


 "/usr/local/Cellar/python@3.7/3.7.9/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__

return next(self.gen)


 "/Users/heguanwang/Library/Python/3.7/lib/python/site-packages/horovod/spark/common/util.py", line 632, in prepare_data

key = _training_cache.create_key(df, store, validation)


 "/Users/heguanwang/Library/Python/3.7/lib/python/site-packages/horovod/spark/common/cache.py", line 29, in create_key

return df.__hash__(), store.get_train_data_path(), store.get_val_data_path(), validation
AttributeError: 'NoneType' object has no attribute 'get_train_data_path'
