Traceback (most recent call last):


 "dqn_cartpole.py", line 49, in <module>

dqn.fit(env, nb_steps=50000, visualize=True, verbose=2, callbacks=[tb_callback])


 "venv/lib/python3.6/site-packages/rl/core.py", line 215, in fit

callbacks.on_episode_end(episode, episode_logs)


 "venv/lib/python3.6/site-packages/rl/callbacks.py", line 59, in on_episode_end

callback.on_epoch_end(episode, logs=logs)


 "venv/lib/python3.6/site-packages/keras/callbacks.py", line 783, in on_epoch_end

summary_value.simple_value = value.item()
AttributeError: 'float' object has no attribute 'item'

Traceback (most recent call last):


 "./interactive.py", line 34, in <module>

obs_n, reward_n, done_n, _ = env.step(act_n)


 "/mnt/4ADE1465DE144C17/Programming/python/multiagent-particle-envs/bin/../multiagent/environment.py", line 94, in step

reward_n.append(self._get_reward(agent))


 "/mnt/4ADE1465DE144C17/Programming/python/multiagent-particle-envs/bin/../multiagent/environment.py", line 141, in _get_reward

return self.reward_callback(agent, self.world)


 "/mnt/4ADE1465DE144C17/Programming/python/multiagent-particle-envs/bin/../multiagent/scenarios/simple_crypto.py", line 96, in reward

return self.adversary_reward(agent, world) if agent.adversary else self.agent_reward(agent, world)


 "/mnt/4ADE1465DE144C17/Programming/python/multiagent-particle-envs/bin/../multiagent/scenarios/simple_crypto.py", line 120, in adversary_reward

if not (agent.state.c == np.zeros(world.dim_c)).all():
AttributeError: 'bool' object has no attribute 'all'
