Traceback (most recent call last):


 "/home/ec2-user/yonatab/ZeroShot/transformers_experiments/src/run_squad_tf.py", line 257, in <module>

main()


 "/home/ec2-user/yonatab/ZeroShot/transformers_experiments/src/run_squad_tf.py", line 242, in main

history = model.fit(train_dataset, validation_data=eval_dataset, epochs=1)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 819, in fit

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 235, in fit

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 593, in _process_training_inputs

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 706, in _process_inputs

use_multiprocessing=use_multiprocessing)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/data_adapter.py", line 702, in __init__

x = standardize_function(x)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 660, in standardize_function

standardize(dataset, extract_tensors_from_dataset=False)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 2360, in _standardize_user_data

self._compile_from_inputs(all_inputs, y_input, x, y)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 2580, in _compile_from_inputs

target, self.outputs)


 "/home/ec2-user/anaconda3/envs/yonatan_env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 1341, in cast_if_floating_dtype_and_mismatch

if target.dtype != out.dtype:
AttributeError: 'str' object has no attribute 'dtype'

Traceback (most recent call last):


 "/usr/lib/ckan/default/bin/paster", line 8, in <module>

sys.exit(run())


 "/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py", line 102, in run

invoke(command, command_name, options, args[1:])


 "/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py", line 141, in invoke

exit_code = runner.run(args)


 "/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py", line 236, in run

result = self.command()


 "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 309, in command

self._load_config(cmd != 'upgrade')


 "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 286, in _load_config

self.site_user = load_config(self.options.config, load_site_user)


 "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 200, in load_config

flask_app = app.apps['flask_app']._wsgi_app
AttributeError: 'I18nMiddleware' object has no attribute 'apps'
