Traceback (most recent call last):


 "/home/administrator/project/python/gym-rl/pyomotools/test/pysp/simple_quadratic/run.py", line 10, in <module>

stsolver = rapper.StochSolver("ReferenceModel.py")


 "/home/administrator/.conda/envs/python36/lib/python3.6/site-packages/pyomo/pysp/util/rapper.py", line 91, in __init__

tree_model = tree.as_concrete_model()


 "/home/administrator/.conda/envs/python36/lib/python3.6/site-packages/pyomo/core/base/block.py", line 519, in __getattr__

% (self.__class__.__name__, val))
AttributeError: 'ConcreteModel' object has no attribute 'as_concrete_model'

Traceback (most recent call last):


 "/home/pltrdy/anaconda3/bin/t2t-trainer", line 96, in <module>

tf.app.run()


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run

_sys.exit(main(_sys.argv[:1] + flags_passthrough))


 "/home/pltrdy/anaconda3/bin/t2t-trainer", line 83, in main

problem.generate_data(data_dir, tmp_dir)


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensor2tensor/data_generators/problem.py", line 625, in generate_data

self.generator(data_dir, tmp_dir, True), all_paths)


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensor2tensor/data_generators/generator_utils.py", line 143, in generate_files

for case in generator:


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensor2tensor/data_generators/cnn_dailymail.py", line 132, in generator

story_generator(tmp_dir))


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensor2tensor/data_generators/generator_utils.py", line 328, in get_or_generate_vocab_inner

for item in generator:


 "/home/pltrdy/anaconda3/lib/python3.6/site-packages/tensor2tensor/data_generators/cnn_dailymail.py", line 78, in story_generator

line = unicode(line, "utf-8") if six.PY2 else line.decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'
