Traceback (most recent call last):


 "run_r2d2.py", line 65, in <module>

app.run(main)


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/absl/app.py", line 299, in run

_run_main(main, args)


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main

sys.exit(main(argv))


 "run_r2d2.py", line 58, in main

agent = r2d2.R2D2(env_spec, network, burn_in_length=10, trace_length=10, replay_period=1)


 "/home/mxfeng/acme/acme/agents/tf/r2d2/agent.py", line 103, in __init__

tf2_utils.create_variables(network, [environment_spec.observations])


 "/home/mxfeng/acme/acme/tf/utils.py", line 105, in create_variables

dummy_output = network(*add_batch_dim(dummy_input))


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/sonnet/src/utils.py", line 89, in _decorate_unbound_method

return decorator_fn(bound_method, self, args, kwargs)


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/sonnet/src/base.py", line 272, in wrap_with_name_scope

return method(*args, **kwargs)


 "/home/mxfeng/acme/acme/tf/networks/atari.py", line 91, in __call__

embeddings = self._embed(inputs)


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/sonnet/src/utils.py", line 89, in _decorate_unbound_method

return decorator_fn(bound_method, self, args, kwargs)


 "/home/mxfeng/anaconda3/envs/acme/lib/python3.6/site-packages/sonnet/src/base.py", line 272, in wrap_with_name_scope

return method(*args, **kwargs)


 "/home/mxfeng/acme/acme/tf/networks/embedding.py", line 37, in __call__

if len(inputs.reward.shape.dims) == 1:
AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'reward'

Traceback (most recent call last):


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/__main__.py", line 1, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/safety/cli.py", line 9, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/safety/util.py", line 1, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/dparse/__init__.py", line 9, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/dparse/parser.py", line 5, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/yaml/__init__.py", line 3, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/yaml/yaml3/__init__.py", line 13, in <module>


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 656, in _load_unlocked


 "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible


 "/usr/local/lib/python3.6/site-packages/pipenv/patched/safety.zip/yaml/yaml3/cyaml.py", line 5, in <module>


 "ext/_yaml.pyx", line 18, in init _yaml (ext/_yaml.c:23185)
AttributeError: module 'yaml' has no attribute 'error'
